Newly available
Loading…
Newly available
Loading…
Newly available
HTML, CSS, and JS features that became Baseline newly available in December
14 features · 5 years
The @scope CSS at-rule sets the scope for a group of rules.
The @page CSS at-rule sets the page-specific dimensions and margins for content such as printed documents, ebooks, or slides.
The :dir() CSS functional pseudo-class matches elements by text direction, either right to left (rtl) or left to right (ltr).
The pow(), sqrt(), hypot(), log(), and exp() CSS functions compute various exponential functions.
The scripting CSS media query sets styles based on whether scripting such as JavaScript is available. Values are enabled if scripting is available, initial-only if scripting is only available on page load (for example, printed content), or none.
The cap CSS length unit corresponds to the height of Latin capital letters.
The counter-set CSS property creates (and optionally sets a value for) a counter, the numbers for a series of headings or ordered list items.
The linear() easing function for animations and transitions interpolates linearly between the control points, and can be used to approximate complex easing functions, such as a bounce effect.
CSS nesting allows for shorter selectors, easier reading, and more modularity by nesting rules inside others.
The preservesPitch property for <audio> or <video> adjusts the pitch of audio to sound more natural when the playback rate is faster or slower than the default.
The :has() CSS functional pseudo-class matches an element if any of the selectors passed as parameters would match at least one element.
The SharedArrayBuffer object represents bytes shared between multiple workers and the main thread. The Atomics object safely accesses SharedArrayBuffer data to make sure predictable values are read and written and that operations are not interrupted.
Methods that validate form controls before submission, such as checkValidity(), reportValidity() and setCustomValidity().
The pointer, any-pointer, hover, and any-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.