pwshub.com

New to the web platform in July

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 July 2024.

Rachel Andrew

Stable browser releases

In July 2024, Firefox 128, Safari 17.6, and Chrome 127 became stable. This post looks at the new features added to the web platform.

CSS Relative color syntax

Firefox 128 includes CSS relative color syntax, this lets you create a color relative to an origin color. The following CSS desaturates the color indigo by half, using hsl().

.desaturate-by-half {
  background: hsl(from indigo h calc(s / 2) l);
}

Browser Support

  • 119
  • 119
  • 128
  • 16.4

You can find many more examples in the blog post CSS relative color syntax. Relative color syntax is one of the focus areas for Interop 2024, so this update helps to improve the score for stable Firefox.

Alternative text for the content property

Firefox 128 supports alternative text for the CSS content property, when it includes an image. The alt text is exposed to the accessibility tree. This means that alternative text is now supported by all browsers for content.

Browser Support

  • 77
  • 79
  • 128
  • 17.4

An update in Chrome 127 ensures that Chrome accepts an arbitrary number of elements rather than just a single string, enabling the use of the attr() function, for example.

The font-size-adjust property

Chrome 127 includes font-size-adjust, also a focus area for Interop 2024. This property is useful for situations where font fallback can occur, as it helps you match the size of a fallback font to the first choice font.

Browser Support

  • 127
  • 127
  • 3
  • 16.4

Source

With this Chrome release the font-size-adjust property becomes part of Baseline Newly Available.

Support for the View Transition API in iframes

From Chrome 127 concurrent same-document view transitions in a main frame and same-origin iframe will be available.

Previously, running a view transition using the document.startViewTransition in a same-origin iframe wouldn't work if the main frame was running a transition at the same time. The iframe's transition would be automatically skipped. Now, both transitions will execute.

Keyboard focusable scroll containers

From Chrome 127 scrollers are click-focusable and programmatically-focusable by default. Scrollers without focusable children are keyboard-focusable by default.

Learn more about this change in the post Keyboard focusable scrollers.

The @property rule

Firefox 128 includes support for the @property rule and related JavaScript APIs. This means you can create CSS custom properties that define a syntax, inheritance, and an initial value.

Browser Support

  • 85
  • 85
  • 128
  • 16.4

Source

In the following example the custom property is defined to accept a <color> value only, to not inherit, and to have an initial value of hotpink.

@property --myColor {
  syntax: '<color>';
  inherits: false;
  initial-value: hotpink;
}

The @property rule is now part of Baseline Newly Available, read more in @property: Next-gen CSS variables now with universal browser support.

Resizable ArrayBuffer and growable SharedArrayBuffer

Resizeable ArrayBuffer and growable SharedArrayBuffer are now supported in Firefox 128, allowing the size of buffers to be changed without having to allocate a new buffer and copy data into it. These properties also join Baseline Newly Available.

Browser Support

  • 111
  • 111
  • 128
  • 16.4

Source

The safe keyword in flexbox properties

Safari 17.6 is mostly a release of fixes to existing features, however it also includes the safe keyword for flexbox alignment properties. This makes the safe keyword interoperable across browsers.

Browser Support

  • 115
  • 115
  • 63
  • 18

The safe keyword prevents a chosen alignment from causing content to display outside of the viewable area. The following CodePen shows how this acts with center aligned items. If the center alignment causes data loss then start is used instead.

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 129 and Chrome 128. The Safari 18 beta is still ongoing. 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 128 includes the CSS ruby-align property, along with changes to make line breaks possible within elements that have display: ruby, the zoom property has also been updated to match the specification. There's an update to the AudioContext API to add a callback assigned to AudiContext.onerror, that reports AudioContext creation and rendering errors.

Firefox 129 includes the @starting-style rule and the transition-behavior property. These properties will become part of Baseline Newly Available once Firefox 129 is released to stable.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-07-30 UTC.

[{ "type": "thumb-down", "id": "missingTheInformationINeed", "label":"Missing the information I need" },{ "type": "thumb-down", "id": "tooComplicatedTooManySteps", "label":"Too complicated / too many steps" },{ "type": "thumb-down", "id": "outOfDate", "label":"Out of date" },{ "type": "thumb-down", "id": "samplesCodeIssue", "label":"Samples / code issue" },{ "type": "thumb-down", "id": "otherDown", "label":"Other" }] [{ "type": "thumb-up", "id": "easyToUnderstand", "label":"Easy to understand" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"Solved my problem" },{ "type": "thumb-up", "id": "otherUp", "label":"Other" }]

Source: web.dev

Related stories
3 weeks ago - The new AWS Asia Pacific (Malaysia) Region bolsters cloud innovation, empowering local businesses and government initiatives while aligning with Malaysia's sustainability goals through Amazon's renewable energy commitment.
2 weeks ago - HELLO EVERYONE!!! It’s the 30th of August 2024, and you are reading the 26th edition of the Codeminer42’s tech news report. Let’s check out what the tech world showed us this week! .NET Community Toolkit 8.3 released The .NET Community...
1 month ago - Stay organized with collections Save and categorize content based on your preferences. The...
1 month ago - Have you ever wondered what happened after CSS3? It’s common knowledge that we never saw CSS4 come after it, yet we have a plethora of new features that have no similar way of defining when they were introduced. The W3C CSS-Next community...
3 weeks ago - A simple yet powerful approach to Web Component server-rendering, declarative behaviors, and JavaScript islands.
Other stories
1 hour ago - Hello, everyone! It’s been an interesting week full of AWS news as usual, but also full of vibrant faces filling up the rooms in a variety of events happening this month. Let’s start by covering some of the releases that have caught my...
2 hours ago - Nitro.js is a solution in the server-side JavaScript landscape that offers features like universal deployment, auto-imports, and file-based routing. The post Nitro.js: Revolutionizing server-side JavaScript appeared first on LogRocket Blog.
2 hours ago - Information architecture isn’t just organizing content. It's about reducing clicks, creating intuitive pathways, and never making your users search for what they need. The post Information architecture: A guide for UX designers appeared...
2 hours ago - Enablement refers to the process of providing others with the means to do something that they otherwise weren’t able to do. The post The importance of enablement for business success appeared first on LogRocket Blog.
3 hours ago - Learn how to detect when a Bluetooth RFCOMM serial port is available with Web Serial.