Polyfilling CSS Grid’s Missing Features
Although CSS Grid Level 1 was released in 2020, at the time of writing, not all features are supported in every major browser. Currently, subgrid
is only supported by Firefox and Safari, with a distinct lack of support in Chromium-based browsers, such as Google Chrome or Microsoft Edge. Unfortunately, masonry
support is even worse – no major browser supports it by default. Firefox offers an implementation that needs to be enabled manually.
CSS, being a living standard with the release of CSS3, evolves. New features are defined in drafts first, then discussed, and afterward, redefined as standards. Sometimes, these discussions and redrafts can go on for literally decades. For example, the first draft of CSS Grid was released in 2007. The current CSS Grid Level 1 definition was only released around 13 years later. So, naturally, developers read these standards and get excited about these new features. That’s why there are...