doiuse icon indicating copy to clipboard operation
doiuse copied to clipboard

`appearance: none` triggers a warning even though it's supported

Open cronfy opened this issue 7 years ago • 4 comments

Unexpected browser feature "css-appearance" is not supported by IE 11 and only partially supported by Firefox 52,54, Chrome 49,58,59, Safari 10.1, Opera 46, iOS Safari 10.3, Chrome for Android 59, Samsung Internet 4

appearance is not supported, but it's oftenly used as -webkit-appearance: none to disable browser's styles.

Is there any way to ignore appearance with this particular value none, but warn on other values?

cronfy avatar Aug 16 '17 16:08 cronfy

You mean ignore a property only when it has a specific value? No, only properties as a whole can be ignored: https://github.com/anandthakker/doiuse#ignoring-file-specific-rules

ismay avatar Aug 17 '17 12:08 ismay

You mean ignore a property only when it has a specific value?

Yes, because indeed -webkit-appearance: none is supported by browsers from my browserlist, but doiuse produces a warning, it's false positive.

cronfy avatar Aug 17 '17 12:08 cronfy

Ok I see. Thanks for reporting it!

ismay avatar Aug 17 '17 12:08 ismay

Related to #91 but a bit different.

I think this can be done with a best effort, similar to #156

Essentially, if -webkit-appearance:none and -moz-appearance:none are in the same ruleset, it shouldn't report unsupported on either Chrome/Webkit or Firefox.

clshortfuse avatar Jul 05 '23 18:07 clshortfuse