--- url: "https://web.dev/blog/baseline2023" titulek: "Baseline 2023 | Blog | web.dev" h1: "Baseline 2023 Stay organized with collections Save and categorize content based on your preferences." popis: "Learn about the Baseline integration on Can I Use, and the features that are now part of Baseline 2023." jazyk: "en" kanonicka: "https://web.dev/blog/baseline2023" drobecky: ["Blog", "Baseline 2023"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-13 23:13:11" znaku: 12109 slov: 1546 kodovani: "iso-8859-2" sha256: "2b22a61985e85713efebd28299ad2467d848492519c9eccebd0574aea51c6254" --- Baseline 2023 Stay organized with collections Save and categorize content based on your preferences. Rachel Andrew Baseline is coming to [caniuse.com](https://caniuse.com)! In this post, learn about the integration and discover some of the features that became part of Baseline in 2023. With the [new definition of Baseline](/blog/baseline-definition-update), there are two stages in a feature's lifecycle: when it becomes *newly available*, and then when it becomes *widely available* after 30 months. A feature becomes part of Baseline Newly available when it becomes interoperable in the following browsers: Safari (macOS and iOS) Firefox (desktop and Android) Chrome (desktop and Android) Edge (desktop) Baseline lands on Can I Use As the next step in clarifying feature availability, Baseline is beginning to land on Can I Use from today. When visiting some pages on Can I Use, you'll see a badge telling you whether the feature is in Baseline Widely available. Features that are in Baseline Newly available will also show a badge, along with the year that they became available. Anything that became interoperable across the core browser set this year is part of *Baseline 2023*. In the rest of this post, find out about the features that hit this milestone during 2023. All of these features are [Baseline 2023](/explore/baseline/2023)—newly available. Size container queries and container query units Size [container queries](https://developer.mozilla.org/docs/Web/CSS/CSS_container_queries) let you query the size of an element, in much the same way that media queries let you query the size of the viewport. They make creating reusable components much easier by letting you create components that react to the size of the area they're placed in. Browser Support 105 105 110 16 [Source](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/container-type) The design of the following card changes depending on the width of the component. Learn more in [Container queries land in stable browsers](/blog/cq-stable). New color spaces and functions CSS now supports color spaces that let you access colors outside the sRGB gamut. This means you can support HD (high definition) displays using colors from HD gamuts. New color models Now in Baseline, the color functions `lch()`, `lab()`, `oklch()`, and `oklab()` give access to the LCH, Lab, OKLCH, and OKLab color models. Browser Support 111 111 113 15 [Source](https://developer.mozilla.org/docs/Web/CSS/Reference/Values/color_value/lch) Try out the new color spaces using [gradient.style](https://gradient.style). The `color-mix()` function In addition, new color functions have become part of Baseline. The `color-mix()` function enables mixing of one color into another, in any of the color spaces. In the following CSS, 25% of blue is mixed into white, in the srgb color space. `.example { background-color: color-mix(in srgb, blue 25%, white); }` Browser Support 111 111 113 15 [Source](https://developer.mozilla.org/docs/Web/CSS/Reference/Values/color_value/color) [Learn more about `color-mix()`](https://developer.chrome.com/blog/css-color-mix). The `color()` function The [`color()`](https://developer.mozilla.org/docs/Web/CSS/color_value/color) function can be used for any color space that specifies colors with R, G and B channels. `color()` takes a color space parameter first, then a series of channel values for RGB and optionally some alpha. You can use any of: `srgb`, `srgb-linear`, `display-p3`, `a98-rgb`, `prophoto-rgb`, `rec2020`, `xyz`, `xyz-d50`, and `xyz-d65`. For example: `.valid-css-color-function-colors { --srgb: color(srgb 1 1 1); --srgb-linear: color(srgb-linear 100% 100% 100% / 50%); --display-p3: color(display-p3 1 1 1); --rec2020: color(rec2020 0 0 0); --a98-rgb: color(a98-rgb 1 1 1 / 25%); --prophoto: color(prophoto-rgb 0% 0% 0%); --xyz: color(xyz 1 1 1); }` The [CSS high definition color guide](https://developer.chrome.com/docs/css-ui/high-definition-css-color-guide) gives you many more examples of the new color spaces and functions, along with information about which to use when. Compression streams The [Compression Streams API](https://developer.mozilla.org/docs/Web/API/Compression_Streams_API) is a JavaScript API for compressing and decompressing streams of data. Apps using this built-in compression no longer need to include a compression library. Browser Support 80 80 113 16.4 [Source](https://developer.mozilla.org/docs/Web/API/CompressionStream) Learn more in [Compression streams are now supported in all browsers](/blog/compressionstreams). Offscreen canvas Before OffscreenCanvas, canvas drawing capabilities were tied to the `` element, which meant it directly depended on the DOM. OffscreenCanvas decouples the DOM from the Canvas API by moving the canvas off-screen. Thanks to this decoupling, rendering of OffscreenCanvas is fully detached from the DOM, so it offers some speed improvements over the regular canvas because there's no synchronization between the two. It can also be used to move rendering work to a Web Worker, even though there's no DOM available, freeing the main thread and making the application more responsive. Browser Support 69 79 105 16.4 [Source](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) Learn more in [OffscreenCanvas—speed up your canvas operations with a web worker](/articles/offscreen-canvas) Module preload Preloading modules can reduce download and processing time. Add [`rel="modulepreload"`](https://developer.mozilla.org/docs/Web/HTML/Attributes/rel/modulepreload) to the link element referencing a JavaScript module, and the browser gets the module, parses and compiles it, and puts the results into the module map ready to execute. Browser Support 66 79 115 17 [Source](https://developer.mozilla.org/docs/Web/HTML/Reference/Attributes/rel/modulepreload) Learn more in [Preload modules](/articles/modulepreload). Trigonometric functions in CSS In 2023 trigonometric functions from the CSS Values and Units Level 4 specification became interoperable. This means the functions `sin()`, `cos()`, `tan()`, `asin()`, `acos()`, `atan()`, and `atan2()` are part of Baseline 2023. Browser Support 111 111 108 15.4 [Source](https://developer.mozilla.org/docs/Web/CSS/Reference/Values/sin) This demo uses the trigonometric functions to move items on a circular path round a central point. Learn to use these functions and discover some use cases in [Trigonometric functions in CSS](/articles/css-trig-functions). The `inert` attribute When you mark a DOM element as `inert`, you remove movement or interaction from it. The `inert` attribute causes the browser to ignore the element: The `click` event doesn't fire if a user clicks the element. The element won't gain focus. The element and its content are excluded from the accessibility tree. Browser Support 102 102 112 15.5 [Source](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/inert) Add this attribute to elements that are offscreen or otherwise hidden. For more information, see [The `inert` attribute](/articles/inert). Subgrid in CSS grid layout The `subgrid` value for `grid-template-columns` and `grid-template-rows` lets you use the tracks defined on a parent grid, on nested grids. This means you can align elements in separate nested grids with each other. Browser Support 117 117 71 16 [Source](https://developer.mozilla.org/docs/Web/CSS/Guides/Grid_layout/Subgrid) In [CSS subgrid](/articles/css-subgrid), you'll find some examples and links to many other posts and examples highlighting subgrid use cases. NumberFormat V3 Intl.NumberFormat V3 is a set of new features for Intl.NumberFormat that became part of Baseline during 2023. The additional features are: Three new functions to format ranges of numbers: `formatRange`, `formatRangeToParts`, and `selectRange` Grouping enum New rounding and precision options Rounding priority Interpret strings as decimals Rounding modes Sign display negative Browser Support 106 106 116 15.4 [Source](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/formatRange) The [proposal for NumberFormat V3](https://github.com/tc39/proposal-intl-numberformat-v3) details each of these new features. The Fullscreen API The Fullscreen API lets you place an element such as a `