Bug 269717

Summary: CSSStyleSheets don't invalidate properly inside ShadowDOM
Product: WebKit Reporter: Keith Cirkel <webkit>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Minor CC: m_dubet, nathan, studio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Interactive test case none

Keith Cirkel
Reported 2024-02-19 09:02:20 PST
See https://github.com/web-platform-tests/wpt/pull/44651/files#diff-777de6c8f8778f17b038c684801ce25570c823ee8f38daec836ed9a1cb255ad1R36-R48 for a repro. Creating a CSSStyleSheet and adopting it, then setting inner properties on the sheet, does not always perform invalidation.
Attachments
Interactive test case (4.95 KB, text/html)
2024-02-19 09:06 PST, Nathan Knowler
no flags
Nathan Knowler
Comment 1 2024-02-19 09:06:54 PST
Created attachment 469961 [details] Interactive test case I’ve had this in my backlog to file for about a month (sorry). I made an interactive test case for it which allows you to switch between the document and the shadowroot as well as between updating styles with `CSSStyleDeclaration` and `StylePropertyMap`.
Radar WebKit Bug Importer
Comment 2 2024-02-20 15:58:23 PST
Egor Kloos
Comment 3 2024-11-05 08:26:25 PST
This is really inconvenient. It would be great to resolve this unreliable behaviour.
Note You need to log in before you can comment on or make changes to this bug.