Re: [csswg-drafts] [css-selectors] Reconsider removing selector list invalidation

If we have already started to distinguish the pseudo-elements that don't invalidate the selector list from those that do on a per-prefix basis, maybe it would work the other way round: treat all unknown pseudo-elements as (potentially) valid, _except_ those starting with any prefix _other than_ `-webkit-`?

>From the first glance, this should not break the backwards compatibility, since the most cases of selector-based hacks would be covered with this exception. In the same time, this would allow to add new features in the stylesheets without need to separate things like
```css
.panel:hover, .panel:focus-within { /* styles when the panel is activated by either the mouse or the keyboard */ }
```
into separate rules (as we have to do currently).

-- 
GitHub Notification of comment by SelenIT
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3082#issuecomment-419065539 using your GitHub account

Received on Thursday, 6 September 2018 11:52:10 UTC