Bug 265289
| Summary: | [css-scoping] Scoped style rules accept relative selector list (relative to :scope) | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Matthieu Dubet <m_dubet> |
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | |||
| Bug Blocks: | 229520 | ||
Matthieu Dubet
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
<rdar://problem/118749004>
Matthieu Dubet
Pull request: https://github.com/WebKit/WebKit/pull/20930
EWS
Committed 271336@main (f658dff67d19): <https://commits.webkit.org/271336@main>
Reviewed commits have been landed. Closing PR #20930 and removing active labels.