forked from anandthakker/doiuse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect use of 'initial', 'unset', and 'revert' keywords
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.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
expect: | ||
css-initial-value: 1 | ||
css-unset-value: 1 | ||
css-revert-value: 1 | ||
*/ | ||
|
||
.initial-value { | ||
color: initial; | ||
} | ||
|
||
.unset-value { | ||
color: unset; | ||
} | ||
|
||
.revert-value { | ||
color: revert; | ||
} |