Bug 291434
Summary: | display: none on shadow DOM elements computed incorrectly | ||
---|---|---|---|
Product: | WebKit | Reporter: | Matt Clough <cluffpost> |
Component: | CSS | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/149558587>