Stay up-to-date with the web platform
Use the Web platform features explorer to discover new features and APIs and stay up-to-date with changes.
Newly available across browsers (RSS feed)
- Selection composed ranges: The
window.getSelection().getComposedRanges()
method returns ranges that represent the current user selection, even if the selection spans across shadow tree boundaries. - abs() and sign(): The
abs()
andsign()
CSS functions compute the absolute value or the sign of the input. - dialog.requestClose(): The
requestClose()
method of a<dialog>
HTML element closes the dialog, firing acancel
event first, which listeners can use to prevent the dialog from closing. This differs from theclose()
method, which only fires the non-cancelableclose
event. - print-color-adjust: The
print-color-adjust
CSS property sets whether styles of printed pages should be adjusted to use less ink, in cases such as light text on a dark background. - RegExp.escape(): The
RegExp.escape()
static method takes a string and replaces any characters that are potentially special characters of a regular expression with equivalent escape sequences. For example,RegExp.escape("[abc]")
returns"\\[abc\\]"
.
Now widely available across browsers (RSS feed)
- Container queries: Container size queries with the
@container
at-rule apply styles to an element based on the dimensions of its container. - Inline-size containment: The
contain: inline-size
CSS declaration prevents the element's inline dimension from being set by the element's contents. This permits the browser to avoid slower layout calculations. - Array findLast() and findLastIndex(): The
findLast()
andfindLastIndex()
methods of arrays and typed arrays search an array in reverse order for the first item that satisfies a test function. - Style containment: The
contain: style
CSS declaration permits the browser to avoid slower layout calculations by preventing modification to counter (counter-increment
andcounter-set
) and quotation styles (content
property quote values) beyond the element's descendants. - dynamic-range media query: The
dynamic-range
CSS media query sets styles based on whether a device can display at leaststandard
range colors or at leasthigh
range colors. Non-visual devices will match neither.