Fylgja Launches CSS Attr v2 Polyfill With Support for Vite, PostCSS, and LightningCSS

Fylgja CSS has released an attr v2 polyfill that enables developers to use the CSS attr() v2 syntax in older browsers today, without waiting for full cross-browser support. The polyfill works by scanning existing modern-browser CSS code and automatically generating static fallback values for unsupported browsers. Currently, all major browsers except Safari support attr v2, with Safari offering it in Technical Preview, making broad baseline support expected later this year. The tool integrates with popular build tools including ViteJS, PostCSS, and LightningCSS, and is also accessible via an API or CLI for projects without a build step. Fylgja plans to ship attr v2 as the default in the next version of Fylgja Utilities, though experimental imports are available for developers who want to try it now.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in