Only omit style rules if _all_ of their complex selectors are bogus

This commit is contained in:
Natalie Weizenbaum 2022-07-06 18:23:11 -07:00
parent 10ccb919a7
commit 5e3314e52b
2 changed files with 5 additions and 3 deletions

View File

@ -4,6 +4,8 @@
* Support single leading combinators in Phase 1.
* Only omit style rules if _all_ of their complex selectors are bogus.
* Allow bogus selectors in `selector.append()`.
## Draft 2

View File

@ -218,9 +218,9 @@ In particular:
* The newly-added errors produce deprecation warnings instead.
* In [Evaluating a Style Rule], only append `css` to the current module's CSS if
its selector is not [bogus], or if it has a single leading combinator but is
otherwise not bogus.
* In [Evaluating a Style Rule], remove any complex selectors from `css`'s
selectors that are [bogus], except those that have a single leading combinator
but are otherwise not bogus.
> Leading combinators are allowed in Phase 1 (but still emit deprecation
> warnings) because they may be used for nesting along with `meta.load-css()`.