Closed Bug 1726477 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 30081 - [LayoutNG] Unsplittable scrolling overflow in LayoutNG

Categories

(Core :: Layout: Columns, task, P4)

task

Tracking

()

RESOLVED FIXED
93 Branch
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-breaks

We 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.html

One 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.xht

Three 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: I64b891662a2004c8da2cc20d6a0169d1a58b64c8

Reviewed-on: https://chromium-review.googlesource.com/3103651
WPT-Export-Revision: dd7c5d45a3a06ad7929d39ec314c30447a3108ec

Component: web-platform-tests → Layout: Columns
Product: Testing → Core
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bef033238ecd [wpt PR 30081] - [LayoutNG] Unsplittable scrolling overflow in LayoutNG, a=testonly https://hg.mozilla.org/integration/autoland/rev/3cf464593ef9 [wpt PR 30081] - Update wpt metadata, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.