csslint icon indicating copy to clipboard operation
csslint copied to clipboard

Known 'textfield' property in -webkit-appearance attribute is reported as unknown

Open bancer opened this issue 7 years ago • 2 comments

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

  1. changing tabs to spaces is against the company's policy,
  2. the same error is reported even when spaces are used instead of tabs.

CSSLint version 1.0.4.

bancer avatar Sep 09 '17 13:09 bancer

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.

toptalo avatar Sep 14 '17 13:09 toptalo

UP!

toptalo avatar Dec 08 '17 10:12 toptalo