7

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 ...

Get Mastering CSS Grid now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.