RESOLVED FIXED 263834
HTML dialog ::backdrop ignores all CSS variables
https://bugs.webkit.org/show_bug.cgi?id=263834
Summary HTML dialog ::backdrop ignores all CSS variables
Wes
Reported 2023-10-28 14:41:44 PDT
The spec was updated so that ::backdrop should inherit from originating element. This will allow CSS variables to work properly in ::backdrop selectors. See existing WPT for test case: https://wpt.fyi/results/html/semantics/interactive-elements/the-dialog-element/backdrop-inherits.html
Attachments
Tim Nguyen (:ntim)
Comment 1 2023-10-28 21:43:44 PDT
https://searchfox.org/wubkat/rev/85e40ad30a15e2dfcda4ebad64ed7f41292908a4/Source/WebCore/rendering/updating/RenderTreeUpdaterGeneratedContent.cpp#203-204 Should be as easy as changing `&renderer.view().style()` to `&renderer.style()` on that line (and the related comment).
Ahmad Saleem
Comment 2 2023-10-30 07:54:46 PDT
Keith Cirkel
Comment 3 2023-10-30 16:23:50 PDT
Yep I've got a patch. I'm first resyncing the web platform tests for dialog (see https://bugs.webkit.org/show_bug.cgi?id=263838 & https://github.com/WebKit/WebKit/pull/19682).
Radar WebKit Bug Importer
Comment 4 2023-11-04 14:42:13 PDT
EWS
Comment 5 2023-11-05 08:33:49 PST
Committed 270246@main (d23e04b12f79): <https://commits.webkit.org/270246@main> Reviewed commits have been landed. Closing PR #20007 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.