Bug 278237

Summary: [css-anchor-position-1] Allow access to more anchor targets
Product: WebKit Reporter: David Choi <david_choi5>
Component: CSSAssignee: 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
Reported 2024-08-16 10:39:59 PDT
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
Radar WebKit Bug Importer
Comment 1 2024-08-16 10:40:49 PDT
David Choi
Comment 2 2024-08-16 10:54:13 PDT
EWS
Comment 3 2024-08-16 17:43:25 PDT
Committed 282377@main (5eaa137f32ae): <https://commits.webkit.org/282377@main> Reviewed commits have been landed. Closing PR #32305 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.