Bug 278237
| Summary: | [css-anchor-position-1] Allow access to more anchor targets | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | David Choi <david_choi5> |
| Component: | CSS | Assignee: | David Choi <david_choi5> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | koivisto, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
David Choi
The way we mark an anchor element as an eligible target for anchor-positioned
elements is by maintaining an `anchorsForAnchorName` map. (It maps anchor-names
to an array of anchor elements with that name.) In each style resolution round,
this map is cleared and rebuilt while traversing the flat tree. As a result,
this does not allow anchor-positioned elements to "see" anchor elements that
come after it in tree order.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/134067014>
David Choi
Pull request: https://github.com/WebKit/WebKit/pull/32305
EWS
Committed 282377@main (5eaa137f32ae): <https://commits.webkit.org/282377@main>
Reviewed commits have been landed. Closing PR #32305 and removing active labels.