Hacker News new | ask | show | jobs
by holtalanm 1866 days ago
> A new layout mode (like CSS Grid) isn't available yet? This allows someone to write a polyfill for it. That's neat!

this was my first thought, too. We have polyfills for js features that don't yet exist in a lot of browsers, but polyfills for css are either very complicated or just don't exist in some cases.

1 comments

Will there be a JS polyfill for Houdini?
Probably not a practical one, for the same reasons that discourage CSS polyfills. I think this feature is aimed not at developers who have to support legacy browsers but those who want to use newer CSS standards in self updating browsers without having to wait for the laggards. Safari is (was?) often criticized for being very slow to implement adopted CSS standards so that might have been the impetus. Once Houdini Paint/Layout/Animation APIs lands and enough clients update, devs can switch to Houdini and use any new/experimental CSS standards that has an open source implementation.
https://github.com/GoogleChromeLabs/css-paint-polyfill

Seems there is for parts of it already