CSSLint: validate using an unprefixed definition
This commit is contained in:
parent
1749f06674
commit
6e0cb2bc86
|
@ -3461,9 +3461,6 @@ var Properties = module.exports = {
|
|||
"align-content" : "<align-content>",
|
||||
"align-self" : "<align-self>",
|
||||
"all" : "initial | inherit | unset",
|
||||
"-webkit-align-items" : "flex-start | flex-end | center | baseline | stretch",
|
||||
"-webkit-align-content" : "flex-start | flex-end | center | space-between | space-around | stretch",
|
||||
"-webkit-align-self" : "auto | flex-start | flex-end | center | baseline | stretch",
|
||||
"alignment-adjust" : "auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | <percentage> | <length>",
|
||||
"alignment-baseline" : "auto | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical",
|
||||
"animation" : 1,
|
||||
|
@ -3476,36 +3473,6 @@ var Properties = module.exports = {
|
|||
"animation-play-state" : "[ running | paused ]#",
|
||||
"animation-timing-function" : 1,
|
||||
|
||||
//vendor prefixed
|
||||
"-moz-animation-delay" : "<time>#",
|
||||
"-moz-animation-direction" : "[ normal | alternate ]#",
|
||||
"-moz-animation-duration" : "<time>#",
|
||||
"-moz-animation-iteration-count" : "[ <number> | infinite ]#",
|
||||
"-moz-animation-name" : "[ none | <single-animation-name> ]#",
|
||||
"-moz-animation-play-state" : "[ running | paused ]#",
|
||||
|
||||
"-ms-animation-delay" : "<time>#",
|
||||
"-ms-animation-direction" : "[ normal | alternate ]#",
|
||||
"-ms-animation-duration" : "<time>#",
|
||||
"-ms-animation-iteration-count" : "[ <number> | infinite ]#",
|
||||
"-ms-animation-name" : "[ none | <single-animation-name> ]#",
|
||||
"-ms-animation-play-state" : "[ running | paused ]#",
|
||||
|
||||
"-webkit-animation-delay" : "<time>#",
|
||||
"-webkit-animation-direction" : "[ normal | alternate ]#",
|
||||
"-webkit-animation-duration" : "<time>#",
|
||||
"-webkit-animation-fill-mode" : "[ none | forwards | backwards | both ]#",
|
||||
"-webkit-animation-iteration-count" : "[ <number> | infinite ]#",
|
||||
"-webkit-animation-name" : "[ none | <single-animation-name> ]#",
|
||||
"-webkit-animation-play-state" : "[ running | paused ]#",
|
||||
|
||||
"-o-animation-delay" : "<time>#",
|
||||
"-o-animation-direction" : "[ normal | alternate ]#",
|
||||
"-o-animation-duration" : "<time>#",
|
||||
"-o-animation-iteration-count" : "[ <number> | infinite ]#",
|
||||
"-o-animation-name" : "[ none | <single-animation-name> ]#",
|
||||
"-o-animation-play-state" : "[ running | paused ]#",
|
||||
|
||||
"appearance" : "none | auto",
|
||||
"-moz-appearance" : "none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized",
|
||||
"-ms-appearance" : "none | icon | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal",
|
||||
|
@ -3598,7 +3565,6 @@ var Properties = module.exports = {
|
|||
"caption-side" : "top | bottom",
|
||||
"clear" : "none | right | left | both",
|
||||
"clip" : "<shape> | auto",
|
||||
"-webkit-clip-path" : "<clip-source> | <clip-path> | none",
|
||||
"clip-path" : "<clip-source> | <clip-path> | none",
|
||||
"clip-rule" : "nonzero | evenodd",
|
||||
"color" : "<color>",
|
||||
|
@ -3655,19 +3621,9 @@ var Properties = module.exports = {
|
|||
"flex-grow" : "<number>",
|
||||
"flex-shrink" : "<number>",
|
||||
"flex-wrap" : "nowrap | wrap | wrap-reverse",
|
||||
"-webkit-flex" : "<flex-shorthand>",
|
||||
"-webkit-flex-basis" : "<width>",
|
||||
"-webkit-flex-direction" : "row | row-reverse | column | column-reverse",
|
||||
"-webkit-flex-flow" : "<flex-direction> || <flex-wrap>",
|
||||
"-webkit-flex-grow" : "<number>",
|
||||
"-webkit-flex-shrink" : "<number>",
|
||||
"-webkit-flex-wrap" : "nowrap | wrap | wrap-reverse",
|
||||
"-ms-flex" : "<flex-shorthand>",
|
||||
"-ms-flex-align" : "start | end | center | stretch | baseline",
|
||||
"-ms-flex-direction" : "row | row-reverse | column | column-reverse",
|
||||
"-ms-flex-order" : "<number>",
|
||||
"-ms-flex-pack" : "start | end | center | justify",
|
||||
"-ms-flex-wrap" : "nowrap | wrap | wrap-reverse",
|
||||
"float" : "left | right | none",
|
||||
"float-offset" : 1,
|
||||
"flood-color" : 1,
|
||||
|
@ -3736,7 +3692,6 @@ var Properties = module.exports = {
|
|||
"justify-content" : "<justify-content>",
|
||||
"justify-items" : "normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ] | [ legacy || [ left | right | center ] ]",
|
||||
"justify-self" : "<justify-self>",
|
||||
"-webkit-justify-content" : "flex-start | flex-end | center | space-between | space-around",
|
||||
|
||||
//K
|
||||
"kerning" : "auto | <length>",
|
||||
|
@ -3793,7 +3748,6 @@ var Properties = module.exports = {
|
|||
"object-position" : "<position>",
|
||||
"opacity" : "<opacity-value>",
|
||||
"order" : "<integer>",
|
||||
"-webkit-order" : "<integer>",
|
||||
"orphans" : "<integer>",
|
||||
"outline" : 1,
|
||||
"outline-color" : "<color> | invert",
|
||||
|
@ -3902,7 +3856,6 @@ var Properties = module.exports = {
|
|||
"text-transform" : "capitalize | uppercase | lowercase | none",
|
||||
"text-wrap" : "normal | none | avoid",
|
||||
"top" : "<margin-width>",
|
||||
"-ms-touch-action" : "auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation",
|
||||
"touch-action" : "auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation",
|
||||
"transform" : "none | <transform-function>+",
|
||||
"transform-box" : "border-box | fill-box | view-box",
|
||||
|
@ -5972,7 +5925,7 @@ var Validation = module.exports = {
|
|||
//normalize name
|
||||
var name = property.toString().toLowerCase(),
|
||||
expression = new PropertyValueIterator(value),
|
||||
spec = Properties[name],
|
||||
spec = Properties[name] || /^-(webkit|moz|ms|o)-(.+)/i.test(name) && Properties[RegExp.$2],
|
||||
part;
|
||||
|
||||
if (!spec) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user