Right floated element disappears when using column-count property in ol element.
Categories
(Core :: Layout: Floats, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox105 | --- | fixed |
People
(Reporter: jackson, Assigned: TYLin)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 Steps to reproduce: Ordered list, with right aligned span in list-item. jsfiddle: https://jsfiddle.net/Jacksoncds/v4yLzt6k/ Actual results: The span element disappears for some of the list items. https://i.stack.imgur.com/OPAlN.png Expected results: All span elements should have been displayed.
![]() |
||
Comment 2•4 years ago
|
||
https://webcompat.com/issues/52751 might be another instance of this.
Though that would require a test case.
And chrome and firefox behaves differently here.
Updated•3 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 3•1 year ago
|
||
The naming of isMeasuringFeasibleContentBSize
and associated log are
misleading. We can change last column's available block-size to be unconstrained
at the end of column balancing [1].
This patch shouldn't change the behavior.
Assignee | ||
Comment 4•1 year ago
|
||
We can move a float frame into its block parent's PushedFloatsList during column
balancing when it cannot fit in the available block-size.
Later, when the column balancing algorithm reflows the last column in an
unconstrained block-size (in the very last reflow if needed [1]), we have to
reflow the line which contains the float's placeholder. The old code uses
GetPrevInFlow() || GetNextInFlow()
to detect this scenario, which is
insufficient because the float's block parent might not have any continuation.
This patch uses NS_FRAME_HAS_MULTI_COLUMN_ANCESTOR
bit to detect this instead.
Depends on D154859
Updated•1 year ago
|
Updated•1 year ago
|
Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/c41e441c6050 Part 1 - Clarify variable naming and log when we reflow last column with unconstrained available bsize. r=emilio https://hg.mozilla.org/integration/autoland/rev/30e4adcd2dbd Part 2 - Use NS_FRAME_HAS_MULTI_COLUMN_ANCESTOR to detect block-fragmented context when marking a line dirty. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/35500 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Comment 9•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c41e441c6050
https://hg.mozilla.org/mozilla-central/rev/30e4adcd2dbd
Description
•