WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
265289
[css-scoping] Scoped style rules accept relative selector list (relative to :scope)
https://bugs.webkit.org/show_bug.cgi?id=265289
Summary
[css-scoping] Scoped style rules accept relative selector list (relative to :...
Matthieu Dubet
Reported
2023-11-23 08:00:56 PST
They accept a <relative-selector-list> as their prelude (rather than just a <selector-list>). Such relative selectors are relative to :scope. Any selector in the <relative-selector-list> that does not start with a combinator but does contain the nesting selector or the :scope selector, is interpreted as a non-relative selector (but the subject must still be in scope to match).
https://drafts.csswg.org/css-cascade-6/#scoped-style-rules
https://github.com/w3c/csswg-drafts/issues/9621
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-11-23 08:01:11 PST
<
rdar://problem/118749004
>
Matthieu Dubet
Comment 2
2023-11-27 07:03:38 PST
Pull request:
https://github.com/WebKit/WebKit/pull/20930
EWS
Comment 3
2023-11-30 05:46:37 PST
Committed
271336@main
(f658dff67d19): <
https://commits.webkit.org/271336@main
> Reviewed commits have been landed. Closing PR #20930 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug