RJWadley / stylelint-no-unsupported-browser-features

Disallow features that aren't supported by your target browser audience.
427 stars 20 forks source link

Doesn't catch `content-visibility: auto;` #293

Open Volker-E opened 1 year ago

Volker-E commented 1 year ago

Hi, we're happily using the plugin at Wikimedia Foundation. Thanks for your work!

Weirdly a few relatively unsupported CSS properties aren't caught. E.g. content-visibility: auto; with


[
    "Last 3 years and Chrome > 0",
    "Last 3 years and Opera > 0",
    "Last 3 years and Edge > 0",
    "Firefox >= 91",
    "Safari >= 11",
    "iOS >= 11",
    "Android >= 5"
]
``` as browserslist support list

Or also `text-wrap: balance` ([caniuse](https://caniuse.com/css-text-wrap-balance)).

Any clue what's behind? Code can be found at [Codex, design system for Wikimedia](https://github.com/wikimedia/design-codex).
ReneBrandt commented 8 months ago

Hi, I am by no means an expert, but I ran into the same thing on a largely fresh stylelint setup. I had a similar issue where text-wrap: wrap wasn't reported as unsupported. I did some digging around:

Are you sure your stylelint and/or your command is configured correctly?

last 3 years and Chrome > 0
last 3 years and Opera > 0
last 3 years and Edge > 0
Firefox >= 91
Safari >= 11
iOS >= 11
Android >= 5