[wpt-sync] Sync PR 30081 - [LayoutNG] Unsplittable scrolling overflow in LayoutNG
Categories
(Core :: Layout: Columns, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox93 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 30081 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/30081
Details from upstream follow.
b'Alison Maher <almaher@microsoft.com>' wrote:
[LayoutNG] Unsplittable scrolling overflow in LayoutNG
According to the spec "UAs may consider as monolithic any elements
with overflow set to auto or scroll and any elements with overflow:
hidden and a non-auto logical height (and no specified maximum
logical height)." https://www.w3.org/TR/css-break-3/#possible-breaksWe previously did not treat any element with 'overflow: hidden' as
monolithic. We also would allow elements with an overflow of auto
or scroll to break if the block had auto logical height, auto or
undefined max-logical-height and a zero or auto min-logical-height.This CL updates this logic to treat any element with overflow auto,
scroll, or hidden as monolithic (unless we're printing). And this
logic is updated specifically for LayoutNG. In legacy layout, this
would not have worked because even if an element is treated as
monolithic, it can still get chopped off if it did not fit within
the fragmentainer.The new behavior is compatible with Firefox. The existing non-WPT
tests that are no longer relevant as a result of the updated
behavior have been deleted:
third_party/blink/web_tests/fast/multicol/composited-relpos-clipped.html
third_party/blink/web_tests/fast/multicol/composited-relpos-in-clipped.html
third_party/blink/web_tests/fast/multicol/overflow-across-columns.htmlOne WPT test was updated to use 'overflow: clip' instead of
'overflow: hidden' to maintain the test's current behavior:
third_party/blink/web_tests/external/wpt/css/css-multicol/multicol-width-small-001.xhtThree internal (non-WPT) tests were added to test the new
functionality, and two new crashing WPT tests were added that are
fixed by this CL.Bug: 1240384, 829028
Change-Id: I64b891662a2004c8da2cc20d6a0169d1a58b64c8Reviewed-on: https://chromium-review.googlesource.com/3103651
WPT-Export-Revision: dd7c5d45a3a06ad7929d39ec314c30447a3108ec
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 1•5 years ago
|
||
| Assignee | ||
Comment 2•5 years ago
|
||
| Assignee | ||
Comment 4•5 years ago
|
||
Comment 5•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/bef033238ecd
https://hg.mozilla.org/mozilla-central/rev/3cf464593ef9
Description
•