📃 March 2025 release notes
Newly available
The following features are newly available:
-
ClipboardItem.supports():
The
ClipboardItem.supports()static method checks if the browser supports writing data types such as "image/svg+xml" or other custom formats to the system clipboard. -
contenteditable="plaintext-only":
The
contenteditable="plaintext-only"global HTML attribute allows the user to edit the content of an element, but prevents rich-text formatting. -
Intl.DurationFormat:
The
Intl.DurationFormatAPI creates a locale-aware formatter that turns an object representing a duration (such as days, hours, and minutes) into a string. -
Iterator methods:
The
Iteratorobject is an abstract base for objects that implement the iterator protocol. It provides methods common to built-in iterators, such asfilter(),find(),map(), andreduce(). You can also use the static methodIterator.from()to convert an existing iterable into anIterator. -
JSON source text access:
To serialize and parse JSON in a lossless way,
JSON.stringify()handlesrawJSONvalues andJSON.parse()'s reviver callback takes a source context parameter. -
Screen wake lock:
The
navigator.wakeLock.request("screen")API prevents the device's screen from dimming or being turned off.
Widely available
The following features are now widely available:
-
Inline-size containment:
The
contain: inline-sizeCSS declaration prevents the element's inline dimension from being set by the element's contents. This permits the browser to avoid slower layout calculations. -
Forced colors:
The
forced-colorsCSS @media rule detects when a user has chosen to use a forced colors mode, also known as high-contrast mode, and theforced-color-adjustCSS property sets whether forced colors apply to an element. -
:modal:
The
:modalpseudo-class selects elements that put other elements into a non-interactive state, such as a fullscreen element or a<dialog>element used withshowModal(). -
Motion path:
The
offsetCSS property animates an element along a defined motion path. -
overflow: clip:
The
overflow: clipCSS declaration clips an element's overflowing content to the box that's defined by theoverflow-clip-marginproperty. Unlikeoverflow: hidden, it allows you to hide overflow on one axis while keeping overflow on the other axis visible. -
Permissions:
The
navigator.permissionsAPI checks whether a permission, such as access to geolocation data, has been granted. -
resolution media query:
The
resolutionCSS media query sets styles based on the pixel density, or how many pixels a device uses to display a single CSS pixel. -
text-align-last:
The
text-align-lastCSS property sets the alignment of the last line of text before a forced line break.
New in Chrome
The following features are now available in Chrome:
-
<dialog closedby>:
The
closedbyHTML attribute for<dialog>sets which user actions close a dialog. For example,closedby="any"allows the dialog to be closed by clicking outside of it. -
Explicit resource management:
The
usingandawait usingdeclarations and thedisposeandasyncDisposesymbols manage the lifecycle of resources such as file handles and streams. TheDisposableStackandAsyncDisposableStackobjects can group, dispose, and coordinate dependencies between multiple disposable resources. -
Error.isError():
The
Error.isError()static method checks whether a value is anErrorobject. -
<meta name="application-title">:
The
name="application-title"attribute for the<meta>HTML element sets an installed web application's title bar text. - Protected audience: The protected audience API facilitates advertisement sales by allowing sites to register users as part of an interest group or to choose which ads appear based on those interest groups, while minimizing the ability of advertisers to track specific members of the interest group. Also known as FLEDGE.
-
dialog.requestClose():
The
requestClose()method of a<dialog>HTML element closes the dialog, firing acancelevent first, which listeners can use to prevent the dialog from closing. This differs from theclose()method, which only fires the non-cancelablecloseevent. -
Shared storage locks:
The
withLockoption toset(),append(),delete(),clear(), andbatchUpdate()methods of thesharedStorageAPI prevents duplicate reporting from cross-site race conditions.
New in Chrome Android
The following features are now available in Chrome Android:
-
<dialog closedby>:
The
closedbyHTML attribute for<dialog>sets which user actions close a dialog. For example,closedby="any"allows the dialog to be closed by clicking outside of it. -
Explicit resource management:
The
usingandawait usingdeclarations and thedisposeandasyncDisposesymbols manage the lifecycle of resources such as file handles and streams. TheDisposableStackandAsyncDisposableStackobjects can group, dispose, and coordinate dependencies between multiple disposable resources. -
Error.isError():
The
Error.isError()static method checks whether a value is anErrorobject. -
<meta name="application-title">:
The
name="application-title"attribute for the<meta>HTML element sets an installed web application's title bar text. - Protected audience: The protected audience API facilitates advertisement sales by allowing sites to register users as part of an interest group or to choose which ads appear based on those interest groups, while minimizing the ability of advertisers to track specific members of the interest group. Also known as FLEDGE.
-
dialog.requestClose():
The
requestClose()method of a<dialog>HTML element closes the dialog, firing acancelevent first, which listeners can use to prevent the dialog from closing. This differs from theclose()method, which only fires the non-cancelablecloseevent. -
Shared storage locks:
The
withLockoption toset(),append(),delete(),clear(), andbatchUpdate()methods of thesharedStorageAPI prevents duplicate reporting from cross-site race conditions.
New in Edge
The following features are now available in Edge:
-
<dialog closedby>:
The
closedbyHTML attribute for<dialog>sets which user actions close a dialog. For example,closedby="any"allows the dialog to be closed by clicking outside of it. -
Digital goods:
The
window.getDigitalGoodsServiceAPI connects to stores or billing services for in-app products and subscriptions. -
Explicit resource management:
The
usingandawait usingdeclarations and thedisposeandasyncDisposesymbols manage the lifecycle of resources such as file handles and streams. TheDisposableStackandAsyncDisposableStackobjects can group, dispose, and coordinate dependencies between multiple disposable resources. -
Error.isError():
The
Error.isError()static method checks whether a value is anErrorobject. -
<meta name="application-title">:
The
name="application-title"attribute for the<meta>HTML element sets an installed web application's title bar text. -
dialog.requestClose():
The
requestClose()method of a<dialog>HTML element closes the dialog, firing acancelevent first, which listeners can use to prevent the dialog from closing. This differs from theclose()method, which only fires the non-cancelablecloseevent. -
Shared storage locks:
The
withLockoption toset(),append(),delete(),clear(), andbatchUpdate()methods of thesharedStorageAPI prevents duplicate reporting from cross-site race conditions.
New in Firefox
The following features are now available in Firefox:
-
autocorrect:
The
autocorrectglobal HTML attribute controls whether to automatically correct spelling or punctuation errors for user input. -
:has-slotted:
The
:has-slottedCSS pseudo-class matches<slot>elements where the fallback content is not shown. The pseudo-class matches any slotted content, including white space, text nodes, or elements. -
:open:
The
:openCSS pseudo-class matches elements that have open states, like<details>,<dialog>, or<select>, based on their state.
New in Firefox for Android
The following features are now available in Firefox for Android:
-
autocorrect:
The
autocorrectglobal HTML attribute controls whether to automatically correct spelling or punctuation errors for user input. -
:has-slotted:
The
:has-slottedCSS pseudo-class matches<slot>elements where the fallback content is not shown. The pseudo-class matches any slotted content, including white space, text nodes, or elements. -
:open:
The
:openCSS pseudo-class matches elements that have open states, like<details>,<dialog>, or<select>, based on their state.
New in Safari
The following features are now available in Safari:
-
Atomics.pause():
The
Atomics.pause()static method gives a hint to the CPU that the code calling the method is in a short-duration wait for shared memory, known as spinning or a spinlock. -
::details-content:
The
::details-contentpseudo-element selects the expandable content of a<details>element, excluding the<summary>. -
font-width:
The
font-widthCSS property selects a font face from a font family based on width, either by a keyword such ascondensedor a percentage. -
alphaandcolorspaceattributes for<input type=color>: The ability to control the opacity of a color picked using<input type="color">and determine the colorspace of the selected color. -
CSP violation reports:
CSP violation reporting sends a report to a URL nominated by the
Reporting-Endpointsheader or theReportingObserverAPI when a page violates its content security policy. -
dialog.requestClose():
The
requestClose()method of a<dialog>HTML element closes the dialog, firing acancelevent first, which listeners can use to prevent the dialog from closing. This differs from theclose()method, which only fires the non-cancelablecloseevent. -
shape():
The
shape()CSS function creates shapes with a series of commands likeline,move, andcurve. It can be used withclip-pathandshape-outside. -
Exception references with exnref (WebAssembly):
When caught, an exception is reified into an exception reference, a value of the new type
exnref.
New in Safari on iOS
The following features are now available in Safari on iOS:
-
Atomics.pause():
The
Atomics.pause()static method gives a hint to the CPU that the code calling the method is in a short-duration wait for shared memory, known as spinning or a spinlock. -
::details-content:
The
::details-contentpseudo-element selects the expandable content of a<details>element, excluding the<summary>. -
alphaandcolorspaceattributes for<input type=color>: The ability to control the opacity of a color picked using<input type="color">and determine the colorspace of the selected color. -
<input type="file" webkitdirectory>:
The
<input type="file" webkitdirectory>HTML element shows a file picker from which users can choose a folder to upload with the form. -
CSP violation reports:
CSP violation reporting sends a report to a URL nominated by the
Reporting-Endpointsheader or theReportingObserverAPI when a page violates its content security policy. -
dialog.requestClose():
The
requestClose()method of a<dialog>HTML element closes the dialog, firing acancelevent first, which listeners can use to prevent the dialog from closing. This differs from theclose()method, which only fires the non-cancelablecloseevent. -
shape():
The
shape()CSS function creates shapes with a series of commands likeline,move, andcurve. It can be used withclip-pathandshape-outside. -
Exception references with exnref (WebAssembly):
When caught, an exception is reified into an exception reference, a value of the new type
exnref.