playcanvas / pcui

UI component library for web-based tools
http://playcanvas.github.io/pcui
MIT License
663 stars 62 forks source link

Remove CSS vendor prefixing #229

Closed willeastcott closed 1 year ago

willeastcott commented 1 year ago

This PR removes all vendor prefixing from PCUI's CSS. Instead, they are added automatically by Autoprefixer (and PostCSS) in the Rollup build process. Vendor prefixes are generated based on the browserlist property in package.json. Currently, this equates to ~92.1% coverage. Having done a visual diff of generated CSS pre and post this change, it is clear that we were previously missing many expected vendor prefixes and also specifying many redundant vendor prefixes that were long ago considered completely standard. The Stylelint config has been updated to disallow any form of vendor prefixing in the future.