Bug 295002
Summary: | [css-anchor-position-1] Scroll adjustment not applied for position:fixed anchored boxes | ||
---|---|---|---|
Product: | WebKit | Reporter: | fantasai <fantasai.bugs> |
Component: | Layout and Rendering | Assignee: | Antti Koivisto <koivisto> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | bfulgham, kiet.ho, 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:
We aren't applying scroll adjustments to position:fixed boxes, so they are separating from their anchors when the page is scrolled.
Affected WPT Tests:
* http://wpt.live/css/css-anchor-position/anchor-scroll-fixedpos.html
This is a basic test for the functionality.
* http://wpt.live/css/css-anchor-position/anchor-scroll-006.html
This checks tracking for anchors in descendant scrollers.
* http://wpt.live/css/css-anchor-position/anchor-scroll-007.html
This checks tracking when multiple anchors are involved.
* http://wpt.live/css/css-anchor-position/position-try-switch-to-fixed-anchor.html
This checks the behavior when applied via position-try.
Missing Tests:
* Need to add a test for `position-area`.
* Need to add a test to check that position-try fallbacks are triggered.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/154348421>
Antti Koivisto
css/css-anchor-position/anchor-scroll-006.html is about per-axis scroll adjustments.
css/css-anchor-position/anchor-scroll-007.html tests the "or" part of the statement "abspos has an anchor reference to its default anchor box or at least to something in the same scrolling context"
css/css-anchor-position/position-try-switch-to-fixed-anchor.html requires position-try scrolling support in general
Antti Koivisto
Pull request: https://github.com/WebKit/WebKit/pull/47291
EWS
Committed 296811@main (de4580fe7eee): <https://commits.webkit.org/296811@main>
Reviewed commits have been landed. Closing PR #47291 and removing active labels.