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

Please consider that the existing behavior is sometimes used as a hack to selectively target a specific browser. For example, people sometimes use selectors like

```
.selector, x:-moz-any-link { /* this should apply only in Firefox */ } 
_:-ms-input-placeholder, .selector { /* this should apply only in IE10+/Edge */ }
```
These styles are usually intended to counter some specific browser bugs, so they rely on the presence of this bug in the target browser and on the absence of these style in other browsers. Exposing such styles to browsers that don't have these bugs would be not web-compatible.

The `::-webkit-craziness` case was kind of special because there was time when many web apps (especially mobile ones) were made under assumption that non-WebKit-derived browsers nearly don't exist (at least in mobile world). That forced other browsers to start supporting some `-webkit`-prefixed features, and eventually even led to the creation of the [Compatibility Standard](https://compat.spec.whatwg.org/).

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

Received on Wednesday, 5 September 2018 12:46:55 UTC