-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The css value "unset" is not being reported for browsers that do not support it. #56
Comments
My workaround: I'm using stylelint to run doiuse, in addition to other linting. To warn about "initial" and "unset", I have the below rule in my property: "/^.*/" (match all regex) So, all properties with a value of "initial" or "unset" will throw a violation. I set the violation severity to warning.
|
By the way, it isn't just properties that are checked. I do get warnings for using |
I should have said "unsupported property-value pairs". My guess is the code checks all properties known to use |
Fixes anandthakker#56 As IE11 does not support 'initial' and 'unset', and 'revert' is not yet supported by pretty much any browser, detecting their usage is valuable to developers and would allow linters to warn about it.
Hi @anandthakker, I fixed this in #93. I'd be happy to work on a few other issues as well. Could you provide write access to the repo, as mentioned in the contribution guideline? Otherwise please consider the PR. Thanks, |
Maybe @pkuczynski could help? |
I just merged your PR and can release the new version soon. When it comes to writing access to the repo, you have to talk with @anandthakker directly as I do not have permissions to grant rights... |
Cool, thanks a lot! |
Many browsers do not support the CSS value
unset
which is used for resetting a css attribute as back to its default inherit/initial value.Currently doiuse is not reporting this when testing with browsers who do not have this value.
http://caniuse.com/#feat=css-unset-value
The text was updated successfully, but these errors were encountered: