From 5e3314e52b9b516feeec5a314dfd8d77abe13450 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Wed, 6 Jul 2022 18:23:11 -0700 Subject: [PATCH] Only omit style rules if _all_ of their complex selectors are bogus --- accepted/bogus-combinators.changes.md | 2 ++ accepted/bogus-combinators.md | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/accepted/bogus-combinators.changes.md b/accepted/bogus-combinators.changes.md index d5d8c396..bc595167 100644 --- a/accepted/bogus-combinators.changes.md +++ b/accepted/bogus-combinators.changes.md @@ -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 diff --git a/accepted/bogus-combinators.md b/accepted/bogus-combinators.md index bf540ec6..7634acf9 100644 --- a/accepted/bogus-combinators.md +++ b/accepted/bogus-combinators.md @@ -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()`.