Implement forced page break on flex items
Categories
(Core :: Layout: Flexbox, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox127 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
We haven't implement any forced break on flex item yet. Specifically, we want to implement break-before and break-after on flex items for those values currently supported by gecko. Firefox's lacks any forced break support for multicol (bug 1840944), so we can start from paginated mode.
Relevant spec:
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
Flex container is the only frame type in layout using childReflowStatus when
naming the nsReflowStatus variable for child. Drop "Reflow" for brevity and
for the consistency with childrenStatus in ReflowChildren().
| Assignee | ||
Comment 2•1 year ago
|
||
This patch stops the frame constructor from inserting nsPageBreakFrame as a flex
item, because flex container does not rely on it to do forced page break at all,
and nsPageBreakFrame can produce wrong layout result.
The majority of this patch is to honor forced break values on flex items in
nsFlexContainerFrame::ReflowChildren(). In this patch, we don't handle avoid
break values such as break-before:avoid and break-after:avoid since they are
not handled in other frame types yet.
WPTs are added in later parts.
| Assignee | ||
Comment 3•1 year ago
|
||
The flex items in 068 variants have no border because they can have some
fuzziness on the column-reverse flex container.
| Assignee | ||
Comment 4•1 year ago
|
||
| Assignee | ||
Comment 5•1 year ago
|
||
Comment 8•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/31b65c4aa8e6
https://hg.mozilla.org/mozilla-central/rev/3f8e6f37ef78
https://hg.mozilla.org/mozilla-central/rev/30ff87c59be6
https://hg.mozilla.org/mozilla-central/rev/93734abeec9d
https://hg.mozilla.org/mozilla-central/rev/de885bd06d1e
Description
•