Bug 295005
| Summary: | [css-anchor-position-1] anchor-scope fails to scope anchor lookups | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | fantasai <fantasai.bugs> |
| Component: | Layout and Rendering | Assignee: | fantasai <fantasai.bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bfulgham, fantasai.bugs, 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:
If anchor-scope: --foo; and anchor-name: --foo are set on the same element, we fail to expose the anchor name to descendants of this element.
Affected WPT Tests:
* http://wpt.live/css/css-anchor-position/anchor-scope-scroll.html
Spec Links:
* https://www.w3.org/TR/css-anchor-position/#anchor-scope
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/154350392>
fantasai
Ok, correction: the actual problem is that if an anchor is referenced from within a scope, it still sees anchors from outside the scope. So we correctly hide scoped anchors from outside lookups, but we fail to hide external anchors from inside lookups.
fantasai
Pull request: https://github.com/WebKit/WebKit/pull/47839
EWS
Committed 297242@main (448f87edcfe9): <https://commits.webkit.org/297242@main>
Reviewed commits have been landed. Closing PR #47839 and removing active labels.