New in Chrome 127

Here's what you need to know:

  • font-size-adjust helps you improve fallback fonts legibility.
  • User activations now get propagated between picture-in-picture documents and their opener.
  • Scroll containers are now keyboard focusable by default.
  • And there's plenty more.

I'm Adriana Jara. Let's dive in and see what's new for developers in Chrome 127.

CSS font-size-adjust

Your site's legibility can decrease when the first-choice font-family is unavailable and its fallback font has a significantly different aspect value.

The following image shows the difference between the Verdana and Times fonts even though the text is the same size.

Text lines that read: 'This text uses the verdana font (14px), which has relatively large lowercase letters' and 'This uses Times font (14px), which is hard to read in small sizes'

If your site were to fall back to the Times font it becomes a lot harder to read.

The font-size-adjust CSS property helps you adjust the font size of fallback fonts to keep the aspect value (height of lowercase letters divided by font size) consistent, ensuring that the text appears similar, regardless of the font used.

In the following image using font-size-adjust maintains the legibility between the Verdana and Times fonts.

   font-size-adjust: 0.545;

Text lines that read 'This text uses the verdana font (14px), which has relatively large lowercase letters', 'This uses Times font (14px), which is hard to read in small sizes' and 'This text in 14px Times font is adjusted to the same aspect value as the Verdana font, so lowercase fonts are normalized across the two fonts

With the launch of font-size-adjust in Chrome this feature becomes Baseline newly available read the details in CSS font-size-adjust is now in Baseline.

Document picture-in-picture: propagate user activation

The Document Picture-in-Picture API now propagates user activations between the document picture-in-picture window and its opener.

Visit the user gesture activation propagation demo and see the changes to the page's background color when a user activation is detected. The user gesture is propagated in both contexts changing the background for both windows.

This makes user activations in a document picture-in-picture window usable inside its opener window and the other way round. This change makes using user-activation-gated APIs more ergonomic, since often event handlers in the document picture-in-picture window are actually run in the opener's context, so the opener's context needs access to the user gesture.

Visit Picture-in-Picture for any element, not just <video> for more details.

Keyboard focusable scroll containers.

Scroll containers becoming keyboard focusable is important to make scrollers and content within scrollers more accessible to all users.

From now on scrollers are click-focusable and programmatically-focusable by default. Before this change, a scroller element could only be tab focused if the tabindex was explicitly set to 0 or higher.

Note that this behavior only happens if the scroller has no focusable children. For example, if the scroller already contains a button, then the tab focus will skip the scroller and focus on the button directly.

Accessibility best practices recommend that all features must be available using a keyboard. Keyboard focusable scrollers by default makes it easier for the user to use sequential focus navigation to access the scrollers.

See more details in Keyboard focusable scrollers

And more!

Of course there's plenty more.

  • Concurrent same-document view transitions in a main frame and same-origin iframe are now available.

  • Alt text generated from CSS content now supports multiple arguments.

  • The DevTools Performance panel now captures WebSocket message events and shows them in the performance trace.

Read the full release notes.

Further reading

This covers only some key highlights. Check the following links for additional changes in Chrome 127.

Subscribe

To stay up to date, subscribe to the Chrome Developers YouTube channel, and you'll get an email notification whenever we launch a new video.

Yo soy Adriana Jara, and as soon as Chrome 127 is released, I'll be right here to tell you what's new in Chrome!