anandthakker / doiuse

:bomb: Lint CSS for browser support against caniuse database.
MIT License
1.25k stars 51 forks source link

add support for `scale`, `translate` & `roate` #161

Open lianzhao opened 1 year ago

lianzhao commented 1 year ago

test.css:

#app {
  scale: 0.1;
}
npx doiuse test.css --browsers "chrome <= 70"

No error reported. These properties was supported from chrome 104. See https://developer.mozilla.org/en-US/docs/Web/CSS/scale

clshortfuse commented 1 year ago

https://caniuse.com/mdn-css_properties_rotate

https://caniuse.com/mdn-css_properties_scale

https://caniuse.com/mdn-css_properties_translate

RJWadley commented 1 year ago

These properties are absent from caniuse-lite and caniuse. Only MDN is tracking them. caniuse-lite does track a few MDN properties, so it could potentially be added to their data.

Here's the relevant issue in caniuse-lite: https://github.com/browserslist/caniuse-lite/issues/114