3

New to the web platform in May

 1 year ago
source link: https://web.dev/web-platform-05-2023/?ref=sidebar
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

New to the web platform in May

Discover some of the interesting features that landed in stable and beta web browsers during May 2023.

May 31, 2023

Stable browser releases #

In May 2023, Firefox 113, Chrome 113, Chrome 114, and Safari 16.5 became stable. Let's take a look at what this means for the web platform.

Caution

We include browser compatibility data pulled from MDN in these posts which may not have been updated yet for very recent browser releases. The post will show the correct information as soon as it appears in the browser-compat-data release.

WebGPU #

Chrome 113 includes WebGPU, the successor to the WebGL and WebGL 2 graphics APIs for the web. It provides modern features such as GPU compute, lower overhead access to GPU hardware, the ability to render to multiple canvases from a single graphics device, and better, more predictable performance.

Browser support
  • Chrome 113, Supported 113
  • Firefox preview, Preview
  • Edge 113, Supported 113
  • Safari, Not supported
Source

First-Party Sets #

First-Party Sets (FPS) is part of the Privacy Sandbox. It is a way for organizations to declare relationships among sites, so that browsers can decide when to allow limited third-party cookie access for sites within a set. FPS began a staged rollout in Chrome 113.

CSS media features and more #

For CSS, Chrome 113 includes the overflow-inline and overflow-block media features.

Browser support
  • Chrome 113, Supported 113
  • Firefox 66, Supported 66
  • Edge 113, Supported 113
  • Safari, Not supported
Source

And the update media feature.

Browser support
  • Chrome 113, Supported 113
  • Firefox 102, Supported 102
  • Edge 113, Supported 113
  • Safari, Not supported
Source

Also included is the linear() easing function, which you can learn more about in the article Create complex animation curves in CSS with the linear() easing function.

Browser support
  • Chrome 113, Supported 113
  • Firefox 112, Supported 112
  • Edge 113, Supported 113
  • Safari, Not supported

CSS Color Level 4 features #

Firefox 113 includes the color(), lab(), lch(), oklab(), oklch(), and color-mix() functional notations, along with the forced-color-adjust property. This means that the new color spaces and functions are now supported across all three major engines. You can learn more about these color spaces and functions in the High definition CSS color guide.

Browser support
  • Chrome 111, Supported 111
  • Firefox 113, Supported 113
  • Edge 111, Supported 111
  • Safari 16.2, Supported 16.2
Source

More control over :nth-child() selections #

Firefox 113 also adds the ability to pass a selector list into :nth-child() and nth-last-child(). Learn more about this, and see examples in the post More control over :nth-child() selections with the of S syntax.

Browser support
  • Chrome 111, Supported 111
  • Firefox 113, Supported 113
  • Edge 111, Supported 111
  • Safari 9, Supported 9

Compressions Streams API #

Now supported in all three major engines due to inclusion in Firefox 113, the Compressions Streams API enables the compression and decompression of streams. This means that JavaScript applications no longer need to bundle a compression library.

Browser support
  • Chrome 80, Supported 80
  • Firefox 113, Supported 113
  • Edge 80, Supported 80
  • Safari 16.4, Supported 16.4
Source

CSS nesting #

Safari 16.5 mostly resolved issues, but also adds support for CSS Nesting, with the new nesting selector >, used to nest related style rules, in a way that will be familiar to developers who have used pre-processors:

.nesting {
color: hotpink;

> .is {
color: rebeccapurple;

> .awesome {
color: deeppink;
}
}
}
Browser support
  • Chrome 112, Supported 112
  • Firefox, Not supported
  • Edge 112, Supported 112
  • Safari preview, Preview
Source

Balancing headlines with text-wrap: balance #

From Chrome 114 you can use text-wrap: balance. This allows you to balance headlines, avoiding the issue of having a single word on the final line, providing a more pleasing and readable result. You can find out more in CSS text-wrap: balance.

Browser support
  • Chrome, Not supported
  • Firefox, Not supported
  • Edge, Not supported
  • Safari, Not supported

CHIPS: Cookies Having Independent Partitioned State #

As part of the work to phase out third-party cookies, CHIPS enables opting-in to third-party cookies being partitioned by top-level site using the new cookie attribute Partitioned. CHIPS is available in Chrome 114.

The Popover API #

Also in Chrome 114 is the Popover API making it easier to build transient user interface (UI) elements that are displayed on top of all other web app UI.

These include user-interactive elements like action menus, form element suggestions, content pickers, and teaching UI.

The new popover attribute enables any element to be displayed in the top layer automatically. This means no more worrying about positioning, stacking elements, focus or keyboard interactions for the developer.

Learn more in Introducing the popover API.

Browser support
  • Chrome 114, Supported 114
  • Firefox, Not supported
  • Edge 114, Supported 114
  • Safari, Not supported
Source

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 114, Chrome 115, and Safari 16.6. 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.

Chrome 115 includes multiple values for the CSS display property. This means that display: flex becomes display: block flex and display: block becomes display: block flow. The single values are maintained as legacy keywords, and once in Chrome Stable this makes the multiple values available accross all engines.

Also in Chrome 115 are the ScrollTimeline and ViewTimeline extensions to the Web Animations specification. These enable scroll-driven animations via CSS and JavaScript.

Firefox 114 includes the WebTransport API, a modern update to WebSockets providing support for multiple streams, unidirectional streams, and out-of-order delivery.

Photo by Photoz ace.

New to the web platform

Last updated

May 31, 2023 — Improve article
Share

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK