May 2024 web platform update
Now widely available on the web platform
Widely available
-
fit-content: The
fit-content
CSS keyword expands a box as needed to fit its contents until the maximum size is reached, preserving the content's preferred aspect ratio. Learn more. -
Reference types (WebAssembly): The
externref
type can be both a value type and a table element type, whilefuncref
can be a value type. Learn more.
Newly available on the web platform
Newly available
-
light-dark(): The
light-dark()
CSS function accepts two colors and uses one depending on the current color scheme. Learn more. -
round(), mod(), and rem(): The
round()
,mod()
, andrem()
CSS functions compute rounded values and the remainder after division. Learn more. -
:state(): The
:state()
CSS pseudo-class matches custom elements based on their custom state, set through theElementInternals.states
API. Learn more. -
text-wrap: balance: The
text-wrap: balance
CSS declaration balances the length of each line when text is broken into multiple lines. Also known as headline balancing. Learn more. -
zoom: The
zoom
CSS property scales the size of an element. Unlike thetransform
property, a zoomed element affects page layout. Learn more.