[csswg-drafts] [css-scoping] Always serialise the implicit `:scope` ? (#9621)

mdubet has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-scoping] Always serialise the implicit `:scope` ? ==
For the css-nesting spec, we resolved to always serialise the implicit `&`:

> When serializing a [relative selector](https://drafts.csswg.org/selectors-4/#relative-selector) in a [nested style rule](https://drafts.csswg.org/css-nesting/#nested-style-rule), the selector must be absolutized, with the implied [nesting selector](https://drafts.csswg.org/css-nesting/#nesting-selector) inserted.

https://drafts.csswg.org/css-nesting/#cssom

Should we do the same for the implicit `:scope` in scoped style rule ?

> They accept a [relative-selector-list](https://drafts.csswg.org/selectors-4/#typedef-relative-selector-list) as their prelude (rather than just a [selector-list](https://drafts.csswg.org/selectors-4/#typedef-selector-list)). Such [relative selectors](https://drafts.csswg.org/selectors-4/#relative-selector) are relative to [:scope](https://drafts.csswg.org/selectors-4/#scope-pseudo).

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9621 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 22 November 2023 14:09:45 UTC