Bug 295012
Summary: | [css-anchor-position-1] Chained anchors don't scroll with their anchor | ||
---|---|---|---|
Product: | WebKit | Reporter: | fantasai <fantasai.bugs> |
Component: | Layout and Rendering | Assignee: | Jonathan Bedard <jbedard> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | bfulgham, fantasai.bugs, kiet.ho, koivisto, simon.fraser, webkit-bug-importer, zalan |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Local Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 289743, 291856 |
fantasai
Overview:
When a box is anchored to a box which is itself anchored, we scroll adjust the box that is anchored directly to the anchor, but not the one directly anchored.
Affected WPT Tests:
* http://wpt.live/css/css-anchor-position/anchor-scroll-chained-001.html
* http://wpt.live/css/css-anchor-position/anchor-scroll-chained-002.html
* http://wpt.live/css/css-anchor-position/anchor-scroll-chained-003.html
* http://wpt.live/css/css-anchor-position/anchor-scroll-chained-004.html
* http://wpt.live/css/css-anchor-position/anchor-scroll-chained-fallback.html
Implementation Notes:
We should probably create a map from scroll containers to their scroll-adjusted boxes, which would let the scroll container adjust the affected boxes more directly, without needing to evaluate all the relationships involved. This would both make it easy to handle these cases and also be more performant.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/154355127>
Antti Koivisto
Pull request: https://github.com/WebKit/WebKit/pull/47722
EWS
Committed 297286@main (6e090026a7cd): <https://commits.webkit.org/297286@main>
Reviewed commits have been landed. Closing PR #47722 and removing active labels.