[wpt-sync] Sync PR 55573 - [anchor] Don't trigger a relayout unless the current option overflows.
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox146 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Attachments
(5 files)
Sync web-platform-tests PR 55573 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/55573
Details from upstream follow.
Ian Kilpatrick <ikilpatrick@chromium.org> wrote:
[anchor] Don't trigger a relayout unless the current option overflows.
Previously we triggered relayout when any option became valid - even if
we'd prefer the last-successful option. As a result we'd relayout the
last-successful option, potentially causing it to change size.Now in non_overflowing_scroll_ranges we either store:
- A single range for the successful option (so that we can invalidate
when it doesn't have any space anymore).- A list of all ranges (who all don't fit - so that we can invalidate
when one of them does have space).All behaviour changes should be behind the CSSAnchorUpdate flag.
Bug: 438515315
Change-Id: Icb49c2b6b9f3c08aa8c6274b65576f59b64776b4Reviewed-on: https://chromium-review.googlesource.com/7063463
WPT-Export-Revision: 1593004f1ee2123126b95d48070fedb542e84cb2
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Comment 1•3 months ago
|
||
| Assignee | ||
Comment 2•3 months ago
|
||
| Assignee | ||
Comment 3•3 months ago
|
||
| Assignee | ||
Comment 4•3 months ago
|
||
| Assignee | ||
Comment 5•3 months ago
|
||
| Assignee | ||
Comment 6•3 months ago
|
||
https://hg.mozilla.org/mozilla-central/rev/76a5d241707a
https://hg.mozilla.org/mozilla-central/rev/dc26dfcef94d
Description
•