anandthakker / doiuse

:bomb: Lint CSS for browser support against caniuse database.
MIT License
1.24k stars 51 forks source link

Support for detecting unofficial features #107

Closed douglaseggleton closed 1 year ago

douglaseggleton commented 5 years ago

Currently the library does not support the detection of :focus-within https://caniuse.com/#feat=css-focus-within

e.g.

body:focus-within {
  background: green;
}

Thoughts on adding support for this?

pkuczynski commented 3 years ago

I would happily accept a PR if you have some time to work on it?

clshortfuse commented 1 year ago

Fixed:

echo "body:focus-within {}"| npx doiuse --browsers "ie >= 9"
<streaming css input>:1:1: :focus-within CSS pseudo-class not supported by: IE (9,10,11) (css-focus-within)