csslint
csslint copied to clipboard
Known 'textfield' property in -webkit-appearance attribute is reported as unknown
CSS:
input[type=number] {
-moz-appearance: textfield;
-webkit-appearance: textfield;
}
Error:
Error - Expected (none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | listbox | listitem | media-fullscreen-button | media-mute-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical) but found 'textfield'. (known-properties)
I found the similar issue https://github.com/CSSLint/csslint/issues/693 but
- changing tabs to spaces is against the company's policy,
- the same error is reported even when spaces are used instead of tabs.
CSSLint version 1.0.4.
Issue #693 about changing tabs to spaces in parserlib. My PR fixed this issue is already merged to parserlib. Now we are waiting update of parserlib npm package and update of CSSLint package, because parserlib is hardcoded to body of CSSLint.
UP!