New to the web platform in March
Discover some of the interesting features that landed in stable and beta web browsers during March 2022.
Stable browser releases #
In March, Chrome 99, Chrome 100, Firefox 98, and Safari 15.4 became stable. This brought a whole batch of new features to the platform, and many of these additions meant that the feature became available in all three browser engines. In this post I've concentrated on those additions that give us interoperability cross-browser, but do check out the release notes to see all of the features added to each engine.
Chrome 99 and Safari 15.4 included Cascade Layers. The @layer
at-rule defines a cascade layer, helping you to control specificity. They join Firefox, and so Cascade Layers is now available in all three browser engines. Find out more about Cascade Layers in Cascade layers are coming to your browser.
- Chrome 99, Supported 99
- Firefox 97, Supported 97
- Edge 99, Supported 99
- Safari 15.4, Supported 15.4
Chrome 100 includes the new value of plus-lighter
for the CSS mix-blend-mode property. This value is useful when cross-fading two elements when all or a subset of pixels have the same values. You can read more about the problem this solves in Cross-fading any two DOM elements is currently impossible.
- Chrome 100, Supported 100
- Firefox 99, Supported 99
- Edge 100, Supported 100
- Safari 9.1, Supported 9.1
Safari 15.4 includes the contain
property, allowing for CSS containment.
- Chrome 52, Supported 52
- Firefox 69, Supported 69
- Edge 79, Supported 79
- Safari 15.4, Supported 15.4
Also in Safari 15.4 is accent-color
, which gives control over the accent color used on some form controls.
- Chrome 93, Supported 93
- Firefox 92, Supported 92
- Edge 93, Supported 93
- Safari 15.4, Supported 15.4
Firefox 98 and Safari 15.4 landed the <dialog>
element, which represents a dialog box.
- Chrome 37, Supported 37
- Firefox 98, Supported 98
- Edge 79, Supported 79
- Safari 15.4, Supported 15.4
Safari 15.4 also completed support for the :focus-visible
pseudo-class. The implementation work on this was by Igalia.
- Chrome 86, Supported 86
- Firefox 85, Supported 85
- Edge 86, Supported 86
- Safari 15.4, Supported 15.4
Beta browser releases #
Beta browser versions give you a preview of things that will be in the next stable version of the browser. It's a great time to test new features, or removals, that could impact your site before the world gets that release.
New betas in March were Chrome 101, and Firefox 99.
Chrome 101 beta includes hwb color notation. This specifies color according to its hue, whiteness, and blackness. As with other color notation, an optional alpha component specifies opacity.
h1 {
color: hwb(194 0% 0% / .5) /* #00c3ff with 50% opacity */
}
- Chrome 101, Supported 101
- Firefox 96, Supported 96
- Edge 101, Supported 101
- Safari 15, Supported 15
Firefox 99 includes the pdfViewerEnabled
property of the Navigator interface. This property indicates if the browser supports inline display of PDF files.
if (!navigator.pdfViewerEnabled) {
// The browser does not support inline viewing of PDF files.
}
- Chrome 94, Supported 94
- Firefox 99, Supported 99
- Edge 94, Supported 94
- Safari 16.4, Supported 16.4
These beta features will land in stable browsers soon.
Hero image by Brandon Zack