Bug 291434

Summary: display: none on shadow DOM elements computed incorrectly
Product: WebKit Reporter: Matt Clough <cluffpost>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Minor CC: cdumez, koivisto, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 18   
Hardware: Mac (Apple Silicon)   
OS: macOS 15   
Bug Depends on:    
Bug Blocks: 148695    

Matt Clough
Reported 2025-04-11 10:10:11 PDT
Overview: Some selectors which result in an element toggling between `display: none` and `display: block` in the light DOM, do not render correctly once toggled to `display: block` and back to `display: none` in a shadow DOM. Reproduction/Demo: https://codepen.io/mattclough/pen/LEYwEmz Expected Results: Rendered elements with an active style rule `display: none` should always be hidden. Build Date & Hardware: Build 20621.1.15.11.10 on macOS Sequoia 15.4 (24E248)
Attachments
Radar WebKit Bug Importer
Comment 1 2025-04-18 10:11:16 PDT
Note You need to log in before you can comment on or make changes to this bug.