July 2024 web platform update
Now widely available on the web platform
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
. Learn more.
Newly available on the web platform
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. Learn more. -
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. Learn more. -
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. Learn more. -
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. Learn more. -
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). Learn more. -
Resizable buffers: The
resize()
method of anArrayBuffer
and thegrow()
method of aSharedArrayBuffer
, constructed with themaxByteLength
option, changes the size of the buffer in place. Learn more.