📃 July 2024 release notes
Newly available
The following features are newly available:
-
Alt text for generated content:
The
/
notation incontent
CSS property values adds alternative text to generated content. For example, thecontent: url('upvote-icon.svg') / 'Upvote'
declaration adds accessible 'Upvote' text to the SVG icon. Also known as alternate text. -
font-size-adjust:
The
font-size-adjust
CSS property preserves apparent text size, regardless of the font used, by scaling fonts to the same size with respect to a specific metric, such as x-height. This can help make fallback fonts look the same size. -
Unsanitized HTML parsing methods:
The
Document.parseHTMLUnsafe()
static method parses HTML into a DOM tree, while thesetHTMLUnsafe()
method ofElement
andShadowRoot
parses and inserts HTML into an existing tree. No sanitization applies to these methods, so never call them with user-provided HTML strings. -
Registered custom properties:
The
CSS.registerProperty()
static method and the@property
CSS at-rule register custom properties for which types and behaviors can be defined. -
Resizable buffers:
The
resize()
method of anArrayBuffer
and thegrow()
method of aSharedArrayBuffer
, constructed with themaxByteLength
option, changes the size of the buffer in place.
Widely available
The following features are now widely available:
-
font-synthesis:
The
font-synthesis
CSS shorthand property disables all font synthesis except the given kinds. To disable a specific kind of font synthesis, instead use the longhand properties such asfont-synthesis-style
andfont-synthesis-weight
.
New in Firefox
The following features are now available in Firefox:
-
Relative colors:
The
from
keyword for color functions (color()
,hsl()
,oklch()
, etc.) creates a new color based on a given color by modifying the values of the input color. Also known as relative color syntax (RCS).
New in Firefox for Android
The following features are now available in Firefox for Android:
-
Relative colors:
The
from
keyword for color functions (color()
,hsl()
,oklch()
, etc.) creates a new color based on a given color by modifying the values of the input color. Also known as relative color syntax (RCS).