Trigger layout in ResizeObserver loop on scroll-based overflow
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox147 | --- | fixed |
People
(Reporter: dshin, Assigned: tlouw)
References
(Blocks 1 open bug)
Details
(Whiteboard: [anchorpositioning:m2])
Attachments
(3 files, 1 obsolete file)
Scrolling may cause positioned element to overflow, which in turn may cause position-try-fallbacks.
(So this likely also depends on position-try-fallbacks being implemented)
Updated•9 months ago
|
| Reporter | ||
Comment 1•9 months ago
•
|
||
Bug 1962598 implements fallbacks at layout time.
So just need to force a layout if positioned rect + offset overflows its abs-cb and we have fallbacks to try.
(position-visibility hiding is at paint-time, so it won't force layout, but it's likely checked here)
| Reporter | ||
Comment 2•8 months ago
|
||
This will live around where bug 1987964 will touch. That bug is waiting on Oct 15 CSSWG breakout session for anchor-positioning.
| Reporter | ||
Comment 3•8 months ago
|
||
As per resolution, we'll be using the IntersectionObserver machinery but run it around the content-visibility time, confirming the same timing as bug 1987964.
content-visibility already runs IO during its evaluation
| Assignee | ||
Updated•8 months ago
|
| Assignee | ||
Comment 4•8 months ago
|
||
Updated•7 months ago
|
Updated•7 months ago
|
Comment 5•7 months ago
|
||
Comment 6•7 months ago
|
||
Not sure we should do this, it's kinda gross.
Comment 7•7 months ago
|
||
Here's a try run with the last version of the patch that we worked on: https://treeherder.mozilla.org/jobs?repo=try&landoCommitID=165784
Comment 8•7 months ago
|
||
Check whether positioned frames still fits their abs-cb and have any
fallbacks remaining, then trigger a layout.
Co-authored-by: David Shin <dshin@mozilla.com>
Co-authored-by: Emilio Cobos Álvarez <emilio@crisal.io>
Comment 10•7 months ago
|
||
Comment 11•7 months ago
|
||
Comment 12•7 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/0be9da23ba3c
https://hg.mozilla.org/mozilla-central/rev/9ef634821b84
https://hg.mozilla.org/mozilla-central/rev/c20fd9d863e5
Updated•7 months ago
|
Updated•6 months ago
|
Description
•