📃 July 2024 release notes
Newly available
The following features are newly available:
-
Alt text for generated content:
The
/notation incontentCSS 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-adjustCSS 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. -
Registered custom properties:
The
CSS.registerProperty()static method and the@propertyCSS at-rule register custom properties for which types and behaviors can be defined. -
Resizable buffers:
The
resize()method of anArrayBufferand thegrow()method of aSharedArrayBuffer, constructed with themaxByteLengthoption, changes the size of the buffer in place.
Widely available
The following features are now widely available:
-
font-synthesis:
The
font-synthesisCSS 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-styleandfont-synthesis-weight.
New in Firefox
The following features are now available in Firefox:
-
getHTML():
The
getHTML()method ofElementandShadowRootobjects serializes an element's DOM to an HTML string. -
Unsanitized HTML parsing methods:
The
Document.parseHTMLUnsafe()static method parses HTML into a DOM tree, while thesetHTMLUnsafe()method ofElementandShadowRootparses and inserts HTML into an existing tree. No sanitization applies to these methods, so never call them with user-provided HTML strings. -
Relative colors:
The
fromkeyword 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:
-
getHTML():
The
getHTML()method ofElementandShadowRootobjects serializes an element's DOM to an HTML string. -
Unsanitized HTML parsing methods:
The
Document.parseHTMLUnsafe()static method parses HTML into a DOM tree, while thesetHTMLUnsafe()method ofElementandShadowRootparses and inserts HTML into an existing tree. No sanitization applies to these methods, so never call them with user-provided HTML strings. -
Relative colors:
The
fromkeyword 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).