postcss / autoprefixer

Parse CSS and add vendor prefixes to rules by Can I Use
https://twitter.com/autoprefixer
MIT License
21.57k stars 1.25k forks source link

Consider adding overflow: clip -> overflow: hidden #1518

Closed Knagis closed 2 months ago

Knagis commented 2 months ago

overflow: clip was added in Chrome 90 and Safari 16. For compatibility there is just one option - adding overflow: hidden (and not try to scroll it programmatically). As such, this seems something that autoprefixer could do - since if someone specifies just the clip option, they definitely don't expect scrollbar to appear on old browser.

ai commented 2 months ago

We do not add features if they don’t have prefixes https://github.com/postcss/autoprefixer?tab=readme-ov-file#does-autoprefixer-polyfill-grid-layout-for-ie

You should ask postcss-preset-env (Analog for Babel but for CSS) https://preset-env.cssdb.org