📃 June 2021 release notes
Widely available
The following features are now widely available:
-
Constraint validation API:
Methods that validate form controls before submission, such as
checkValidity()
,reportValidity()
andsetCustomValidity()
. -
Interaction media queries:
The
pointer
,any-pointer
,hover
, andany-hover
CSS media queries set styles based on the presence of pointing devices and their ability to hover over elements. For example, most smartphones match the(hover: none) and (pointer: coarse)
media query.
New in Firefox
The following features are now available in Firefox:
-
aspect-ratio:
The
aspect-ratio
CSS property controls the width-to-height ratio of elements. For<img>
and<video>
elements, thewidth
andheight
attributes used together withheight: auto
control the aspect ratio while the image/video is loading. -
Event timing:
The
event
andfirst-input
performance entries and thePerformanceEventTiming
API measures the latency of user input events, such as mouse clicks or keypresses, and the latency of the first user input. First Input Delay (FID) is a common metric for perceived responsiveness. -
Font metric overrides:
The
ascent-override
,descent-override
, andline-gap-override
descriptors adjust the display of a font declared in an@font-face
statement. This can help make fallback fonts look the same size. -
Forced colors:
The
forced-colors
CSS @media rule detects when a user has chosen to use a forced colors mode, also known as high-contrast mode, and theforced-color-adjust
CSS property sets whether forced colors apply to an element. -
image-set():
The
image-set()
CSS function provides a set of images at different resolutions or pixel densities, which the browser can pick from, depending on the device capabilities. -
Top-level await:
The
await
keyword, when used at the top level of a module (outside of an async function), delays parent module execution until after a promise fulfills. - Fixed-width SIMD (WebAssembly): 128-bit SIMD (Single Instruction Multiple Data) performs one instruction on multiple units of data, when running on hardware that supports such instructions. Also known as vector instructions.
New in Firefox for Android
The following features are now available in Firefox for Android:
-
aspect-ratio:
The
aspect-ratio
CSS property controls the width-to-height ratio of elements. For<img>
and<video>
elements, thewidth
andheight
attributes used together withheight: auto
control the aspect ratio while the image/video is loading. -
Event timing:
The
event
andfirst-input
performance entries and thePerformanceEventTiming
API measures the latency of user input events, such as mouse clicks or keypresses, and the latency of the first user input. First Input Delay (FID) is a common metric for perceived responsiveness. -
Font metric overrides:
The
ascent-override
,descent-override
, andline-gap-override
descriptors adjust the display of a font declared in an@font-face
statement. This can help make fallback fonts look the same size. -
Forced colors:
The
forced-colors
CSS @media rule detects when a user has chosen to use a forced colors mode, also known as high-contrast mode, and theforced-color-adjust
CSS property sets whether forced colors apply to an element. -
image-set():
The
image-set()
CSS function provides a set of images at different resolutions or pixel densities, which the browser can pick from, depending on the device capabilities. -
Top-level await:
The
await
keyword, when used at the top level of a module (outside of an async function), delays parent module execution until after a promise fulfills. - Fixed-width SIMD (WebAssembly): 128-bit SIMD (Single Instruction Multiple Data) performs one instruction on multiple units of data, when running on hardware that supports such instructions. Also known as vector instructions.