Bug 265289 - [css-scoping] Scoped style rules accept relative selector list (relative to :scope)
Summary: [css-scoping] Scoped style rules accept relative selector list (relative to :...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 229520
  Show dependency treegraph
 
Reported: 2023-11-23 08:00 PST by Matthieu Dubet
Modified: 2024-01-30 04:09 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Dubet 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
Comment 1 Radar WebKit Bug Importer 2023-11-23 08:01:11 PST
<rdar://problem/118749004>
Comment 2 Matthieu Dubet 2023-11-27 07:03:38 PST
Pull request: https://github.com/WebKit/WebKit/pull/20930
Comment 3 EWS 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.