NEW 281976
Unexpected nested @scope match with `:has(:scope /*...*/)`
https://bugs.webkit.org/show_bug.cgi?id=281976
Summary Unexpected nested @scope match with `:has(:scope /*...*/)`
David Shin
Reported 2024-10-23 08:43:46 PDT
Created attachment 473017 [details] Minimum Reproducible Case STR: Load the attached testcase on Safari Technology Preview Release 205 (Safari 18.0, WebKit 20621.1.2.111.4) Expected behaviour: "What color?" is black Actual behaviour: It's green The inner scope's selector is `:has(:scope .baz)`, which implies that a potential inner scope must be an ancestor of `:scope`, which is incompatible with outer scope being the ancestor of the inner scope.
Attachments
Minimum Reproducible Case (266 bytes, text/html)
2024-10-23 08:43 PDT, David Shin
no flags
Radar WebKit Bug Importer
Comment 1 2024-10-23 11:43:35 PDT
Note You need to log in before you can comment on or make changes to this bug.