November 2023 web platform update
Newly available on the web platform
Newly available
-
lh unit: The CSS
lh
unit corresponds to the requested line height, the computed value of theline-height
property. Some lines may be higher than this based on their content. Learn more. -
User activation: The
navigator.userActivation
API reveals whether the user has interacted with the page through an "activation" gesture such as a click, tap, or key press. User activation gated APIs (such as the fullscreen API) fail without user interaction, and this API allows you to predict such a failure. Learn more. -
:user-valid and :user-invalid: The
:user-valid
and:user-invalid
pseudo-classes match form controls that have been marked as valid or invalid based on their validation constraints. Learn more.
Now available in Edge
Limited availability
-
Promise.withResolvers(): The
Promise.withResolvers()
static method is an alternative to thePromise()
constructor that returns both the promise and resolution functions. You can use this to accessresolve
andreject
outside the scope of the executor function. 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.
Now available in Firefox
Limited availability
-
light-dark(): The
light-dark()
CSS function accepts two colors and uses one depending on the current color scheme. Learn more.
Now available in Firefox for Android
Limited availability
-
light-dark(): The
light-dark()
CSS function accepts two colors and uses one depending on the current color scheme. Learn more.