--- url: "https://web.dev/blog/web-platform-04-2024" titulek: "New to the web platform in April | Blog | web.dev" h1: "New to the web platform in April Stay organized with collections Save and categorize content based on your preferences." popis: "Discover some of the interesting features that have landed in stable and beta web browsers during April 2024." jazyk: "en" kanonicka: "https://web.dev/blog/web-platform-04-2024" drobecky: ["Blog", "New to the web platform in April"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 01:49:32" znaku: 5370 slov: 620 kodovani: "iso-8859-2" sha256: "fb46b856229416ad758c796827ca2b5c137d355940b22821a26cee0c7173823c" --- New to the web platform in April Stay organized with collections Save and categorize content based on your preferences. Discover some of the interesting features that have landed in stable and beta web browsers during April 2024. Rachel Andrew Stable browser releases In April 2024 [Firefox 125](https://developer.mozilla.org/docs/Mozilla/Firefox/Releases/125) and [Chrome 124](https://developer.chrome.com/release-notes/124) became stable. This post looks at the new features added to the web platform. Four new features land in Baseline Firefox 125 added four new features to Baseline Newly available. The Popover API, `Intl.Segmenter`, `align-content` for block layouts, and the `content-box` and `stroke-box` values for `transform-box`. The Popover API [The Popover API](https://developer.mozilla.org/docs/Web/API/Popover_API) lets you create many kinds of non-modal popups. These include tooltips, menus, custom toast popups, and many more. Popovers include lots of built-in functionality that you previously had to write JavaScript for. Find out more in [Popover API lands in Baseline](/blog/popover-api). Browser Support 114 114 125 17 [Source](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetAction) `Intl.Segmenter` [`Intl.Segmenter`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter) enables local-sensitive text segmentation. For example, letting you split words in languages that don't separate words with spaces. See how it works in [The Intl.Segmenter object is now part of Baseline](/blog/intl-segmenter). Browser Support 87 87 125 14.1 [Source](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter) `align-content` for block layouts The `align-content` property is now supported in all major engines for block layout. This means that you can do block direction alignment without needing to also create a flex or grid layout on the parent. See an example in [The align-content property for block layouts is now part of Baseline](/blog/align-content-block). Browser Support 123 123 125 17.4 CSS `transform-box` Finally, in Firefox 125 are the values of `content-box` and `stroke-box` for the [`transform-box`](https://developer.mozilla.org/docs/Web/CSS/transform-box) property. The `content-box` value uses the [content box](https://developer.mozilla.org/docs/Learn/CSS/Building_blocks/The_box_model#parts_of_a_box) and `stroke-box` the stroke bounding box containing an SVG's shape. Browser Support 118 118 125 13.1 The WebSocketStream API The WebSocketStream API integrates WHATWG Streams with the WebSocket API, and is available in Chrome 124. Learn more in [WebSocketStream: integrating streams with the WebSocket API](https://developer.chrome.com/docs/capabilities/web-apis/websocketstream). Browser Support 124 124 x x [Source](https://developer.mozilla.org/docs/Web/API/WebSocketStream) `setHTMLUnsafe` and `parseHTMLUnsafe` Chrome 124 also includes the `setHTMLUnsafe` and `parseHTMLUnsafe` methods the let you use the Declarative Shadow DOM from JavaScript. These methods also offer an easier way to imperatively parse HTML into DOM, as compared to `innerHTML` or `DOMParser`. Browser Support 124 124 123 26 [Source](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) 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 are [Firefox 126](https://developer.mozilla.org/docs/Mozilla/Firefox/Releases/126), [Safari 17.5](https://developer.apple.com/documentation/safari-release-notes/safari-17_5-release-notes), and [Chrome 125](https://developer.chrome.com/blog/chrome-125-beta). These releases bring many great features to the platform. Check out the release notes for all of the details. Here are just a few highlights. Safari 17.5 includes the [`light-dark()`](https://developer.mozilla.org/docs/Web/CSS/color_value/light-dark) color function, which will become Baseline Newly available once 17.5 is stable. Also coming to Baseline Newly available are the CSS Stepped value functions. Chrome 125 includes [`round()`](https://developer.mozilla.org/docs/Web/CSS/round), [`mod()`](https://developer.mozilla.org/docs/Web/CSS/mod), and [`rem()`](https://developer.mozilla.org/docs/Web/CSS/rem). Chrome 125 also includes the [Compute Pressure API](https://developer.chrome.com/docs/web-platform/compute-pressure), and CSS anchor positioning. Firefox 126 includes the [Screen Wake Lock API](https://developer.mozilla.org/docs/Web/API/Screen_Wake_Lock_API), making yet another feature Baseline Newly available. Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies). Java is a registered trademark of Oracle and/or its affiliates. Last updated 2024-04-29 UTC.