Bug 316463

Summary: [css-anchor-position-1] Pseudo-elements that no longer exist are still in m_anchorPositionedToAnchorMap
Product: WebKit Reporter: Kiet Ho <kiet.ho>
Component: Layout and RenderingAssignee: Kiet Ho <kiet.ho>
Status: NEW    
Severity: Normal CC: bfulgham, kiet.ho, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=316441

Kiet Ho
Reported 2026-06-05 17:32:10 PDT
This addresses the root cause of bug 316441. m_anchorPositionedToAnchorMap is keyed on WeakStyleable. WeakStyleable is null if the Element is null, but not if the Styleable is a pseudo-element, and the pseudo-element no longer exists (by that I mean, RenderTreeUpdater::GeneratedContent::updateBeforeOrAfterPseudoElement determines a pseudo-element is no longer needed and clears it). Hence it's possible for stale pseudo-elements to still be in m_anchorPositionedToAnchorMap
Attachments
Radar WebKit Bug Importer
Comment 1 2026-06-05 17:32:17 PDT
Note You need to log in before you can comment on or make changes to this bug.