Newly available
Loading…
Newly available
Loading…
Newly available
HTML, CSS, and JS features that became Baseline newly available in July
197 features · 6 years
The getter methods of the Intl.Locale API provide supplemental information about a Unicode locale, such as the locale's calendar (for example, the first day in a week or the weekend start day), writing direction, 12- or 24-hour cycles, and numbering system.
The / notation in content CSS property values adds alternative text to generated content. For example, the content: url('upvote-icon.svg') / 'Upvote' declaration adds accessible 'Upvote' text to the SVG icon. Also known as alternate text.
The resize() method of an ArrayBuffer and the grow() method of a SharedArrayBuffer, constructed with the maxByteLength option, changes the size of the buffer in place.
The font-size-adjust CSS property preserves apparent text size, regardless of the font used, by scaling fonts to the same size with respect to a specific metric, such as x-height. This can help make fallback fonts look the same size.
The toReversed(), toSorted(), toSpliced(), and with() methods of arrays and typed arrays return changed copies of arrays. They stand in contrast to methods such as sort() or reverse() that change arrays in place.
The display CSS property accepts multiple keyword values, such as inline flex or block flow, to explicitly set an element's inner and outer layout mode. Also known as 2-value, multi-keyword, or multiple value syntax.
The contain: style CSS declaration permits the browser to avoid slower layout calculations by preventing modification to counter (counter-increment and counter-set) and quotation styles (content property quote values) beyond the element's descendants.
The revert CSS keyword resets any property to its previous default, provided by either the user or browser stylesheets. For example, setting display: revert on a <div> will likely result in display: block, the browser default style. This is often confused with initial.
The :read-only and :read-write CSS pseudo-classes match elements that are read-only or read-write, respectively. For example, :read-only matches <input> and <textarea> elements with the readonly attribute.
The column-span CSS property controls whether a child element extends across all columns of a multi-column parent.
The line-break CSS property sets how strictly to apply rules for wrapping text to new lines, especially for symbols and punctuation.
The min() and max() CSS functions return the minimum or maximum of the arguments, while clamp() clamps a value to a given range.
To improve readability for numeric literals, underscores (_) can be used as separators. For example, 1_050.95 is equivalent to 1050.95.
The Promise.allSettled() static method waits for an array of promises to settle (resolve or reject).
The part and exportparts HTML attributes expose elements of a shadow DOM as named parts, which can be selected by the ::part() CSS pseudo-element for styling.
The text-underline-position CSS property sets the position of underlines on text. For example, text-underline-position: under places the underline below the text, avoiding crossing descenders. The underline may be further adjusted by the text-underline-offset property.
The ::first-letter CSS pseudo-element selects the first letter in an element for styling.
The ::first-line CSS pseudo-element selects the first line of text in an element for styling.
The :empty CSS pseudo-class matches elements without child elements.
The :lang() CSS functional pseudo-class matches elements based on their content language.
The :nth-child() and :nth-last-child() CSS functional pseudo-classes match elements based on their index within a list of elements. The :first-child and :last-child pseudo-classes match the first and last element in a list, and the :only-child pseudo-class matches an element with no siblings.
The :nth-of-type() and :nth-last-of-type() CSS functional pseudo-classes match elements based on their position among siblings of the same type. The :first-of-type, :last-of-type, and :only-of-type pseudo-classes match the first, last, and only elements of its type.
The :root pseudo-class matches the root element of the document, usually the <html> element.
The :target CSS pseudo-class matches the element with an ID matching the URL fragment.
The @charset CSS at-rule specifies the character encoding of an external style sheet.
The @import CSS at-rule loads styles from another stylesheet.
The @namespace CSS rule sets a default namespace or namespace prefix. Namespace prefixes allow CSS selectors to distinguish elements with the same name but different document types, such as the HTML <a> element and the SVG <a> element.
The <a> element creates a hyperlink to any resource that's accessible via a URL, such as web pages, files, email addresses, or locations within the same page.
The <abbr> HTML element represents an abbreviation or acronym.
The <address> element represents contact information for a person or people, or for an organization.
The <article> element represents self-contained content, which is intended to be independently distributable or reusable, such as a comment, a blog post, or news article.
The <aside> element represents a portion of a document whose content is only indirectly related to the document's main content.
The <audio> element plays sound such as audio effects or music, optionally with controls provided by the browser.
The <b> HTML element draws reader's attention to text, styling text as bold by default.
The <base> element sets the base URL (the URL that relative URLs are relative to) for all relative URLs in the document.
The <bdo> element overrides the directionality of text, so that the text within is rendered in a different direction than the surrounding text.
The <blockquote> element represents an extended quotation, styling contents as an indented block by default.
The <body> element represents the content of an HTML document.
The <br> element produces line breaks in text.
The <button> HTML element represents a button that triggers some action, such as submitting a form or opening a dialog, styled as a labeled rectangular box by default.
The <canvas> HTML element is a space to draw graphics in, using the 2D canvas API, WebGL, or WebGPU.
The <cite> element represents the title of a quoted, referenced, or mentioned creative work, such as a film or book.
The <code> element displays its contents as a fragment of computer code.
The <del> element represents a range of text that has been deleted from a document, styling text as strikethrough by default.
The <dfn> element marks a term to be defined, styling text as italic by default.
The <div> HTML element is the generic container for content.
The <em> HTML element emphasizes or stresses the content, styling text as italic by default.
The <fieldset> and <legend> elements group several form control elements within a web form.
The <figure> and <figcaption> HTML elements represent an illustration, diagram, text, or other self-contained reference content, with an optional caption.
The <form> element contains interactive controls for submitting information.
The <h1> through <h6> HTML elements represent six levels of section headings, in order of decreasing importance.
The <head> element contains machine-readable information (metadata) about the document, such as the title, <script> and <style> elements, and <meta> elements.
The <header> and <footer> HTML elements represent content that precedes and follows the main page content, respectively.
The <hgroup> element represents a heading and related content.
The <hr> element represents a thematic break between paragraphs, often shown as a horizontal rule.
The <html> element represents the top-level of an HTML document and is referred to as the root element.
The <i> HTML element identifies idiomatic content, styling text as italic by default.
The <iframe> element embeds another HTML page into the current page.
The <img> element adds an image into the document.
The <input type="button"> HTML element represents a button that triggers some action, such as submitting a form or opening a dialog, styled as a labeled rectangular box by default. Not to be confused with the <button> element, which contains HTML content.
The <input type="checkbox"> HTML element represents a tickable box with two states, checked and unchecked.
The <input type="file" multiple> HTML element shows a file picker from which users can choose one or more files to upload with a form.
The <input type="file"> HTML element shows a file picker from which users can choose a file to upload with the form.
The <input type="hidden"> HTML element represents a form field that is not shown visually but is still included in the form submission.
The <input type="image"> HTML element is an image that can be used to submit a form, like the <input type="submit"> element.
The <input type="number"> HTML element represents numeric input data.
The <input type="password"> HTML element represents a field for users to enter a password. The password is hidden from view, typically replaced by dots or asterisks.
The <input type="radio"> HTML element represents one button in a group such that only one can be chosen at a time.
The <input type="reset"> HTML element represents a button that sets all form fields to their initial values.
The <input type="search"> HTML element represents a text field for search queries.
The <input type="submit"> HTML element represents a button that triggers an action on its associated <form>, such as sending the form data to a server.
The <input type="text"> HTML element allows the user to enter information into a form. By default, an <input> element is a text input.
The <ins> element represents a range of text that has been inserted into a document, styling text as underlined by default.
The <kbd> element represents textual user input, such as keyboard or voice input, styling text in monospaced type by default.
The <label> HTML element represents a caption for a form field.
The <link> element creates a relationship between the current document and an external resource, such as a stylesheet or favicon.
The <main> element represents the dominant content of a document. It is commonly used together with <header> and <footer>.
The <mark> element represents text which is marked or highlighted for reference or notation purposes.
The <menu> element represents an unordered list of action items (<li>), such as a toolbar. It is a semantic alternative to the <ul> element.
The <meta> element represents metadata about the page used by the browser or search engines, including description, keywords, and character sets.
The <nav> element represents a section of a page whose purpose is to provide navigation links, either within the current document or to other documents.
The <object> element represents an external resource such as a PDF or SVG document. It was historically used for plugins such as Shockwave Flash.
The <ol>, <ul>, and <li> HTML elements represent ordered and unordered lists.
The <p> element represents a paragraph of text.
The <pre> element represents a block element of preformatted text that is presented exactly as written, including all white space.
The <progress> element displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
The <q> element represents a short inline quotation.
The <ruby> element produces small annotations that are rendered with its base text.
The <s> HTML element indicates text that is no longer relevant or accurate, styling text as strikethrough by default.
The <samp> element represents a sample or quoted output from a computer program. Styled in a monospace font by default.
The <script> element contains or loads data or executable code. This is typically used to load JavaScript code. The <noscript> element represents alternative content to show when scripting is not allowed.
The <section> element is a generic standalone section of a document, which doesn't have a more specific semantic element to represent it.
The <select> element provides a menu of options for a user to pick from, typically rendered as a dropdown list.
The <small> element represents side-comments and small print, like copyright and legal text, independent of its styled presentation. Styled in a reduced font size by default.
The <source> element sets a media resource for the <picture>, <video>, and <audio> elements.
The <span> HTML element is the generic inline container for content.
The <strong> HTML element brings attention to the content, styling text as bold by default.
The <style> element embeds an inline CSS stylesheet in a document.
The <sub> and <sup> elements sets inline text to be displayed as subscript or superscript for solely typographical reasons.
The <textarea> element represents an editing control that allows users to enter multi-line, free-form, plain text.
The <title> element sets the title of the document and exposes it to users via the UI of the browser or app they're using and through assistive technology.
The <u> HTML element makes non-textual annotations, styling text as underlined by default.
The <var> element represents the name of a variable in a mathematical expression or a programming context.
The <video> element plays videos or movies, optionally with controls provided by the browser.
The <wbr> HTML element represents a word break opportunity, to explicitly mark a place within a word where a line might be broken.
The position: absolute CSS declaration removes an element from the normal flow and positions it relative to its containing block, which is often the root element, or closest positioned ancestor.
Arrays are ordered lists of JavaScript values.
Array iteration methods
The array splice() method changes an array in-place. You can use it to delete items, overwrite items, or insert items, starting from an index.
The Array.isArray() static method checks whether a value is an array.
The attr() CSS function, in content property declarations, sets a ::before or ::after pseudo-element's content to the value of the specified HTML attribute.
The background CSS property is a shorthand that sets several background properties at once.
The background-clip CSS property sets the extent of the background: the padding box, the content box, or the default border box.
The background-color CSS property sets the fill color of an element, behind any content and background images or gradients.
The background-image CSS property sets the graphics to display behind the content of an element and in front of the background color. Graphics may be any combination of images or gradients.
The background-origin CSS property sets the background starting position relative to the border and padding of an element.
The background-position CSS property offsets the initial position of background images relative to the background origin.
The background-size CSS property scales or stretches a background based on the size of the element (with the contain and cover keywords), a length, or percentage.
The border-radius CSS property rounds the corners of the border drawn around an element.
The border CSS property sets the color, style, and width of the line around an element.
The box-shadow CSS property applies shadow effects around an element's frame. This can create drop shadow and inner shadow effects.
The box-sizing CSS property sets whether an element's width and height are calculated based on the content-box, which does not count the size of borders or padding, or border-box, which does count them.
The calc() CSS function computes mathematical expressions such a calc(100%/3 - 1em).
The ch CSS length unit is a font-relative length based on the width of the zero (0) character.
The color CSS property sets the primary foreground color of an element, which is used for text, the default border color, and text decorations.
The console API logs debugging messages to the browser development tools' console.
The content CSS property sets the content inside of an element or pseudo-element, replacing the current value. It's often used with the ::before and ::after pseudo-elements to generate cosmetic content.
The counter-reset and counter-increment CSS properties and the counter() and counters() functions automatically number headings or ordered list items.
The cubic-bezier() CSS easing function interpolates along a smooth curve, creating animations and transitions with continuous changes in speed. The ease, ease-in, ease-out, and ease-in-out keyword values are presets for common Bézier curves.
The currentColor CSS value allows you to reuse an element's computed text color for other properties.
The Date object represents a single moment in time.
The <dl>, <dt>, and <dd> HTML elements represent a list of terms and their associated descriptions. Use a description list to create glossaries or similar list of key-value pairs.
The display CSS property sets the display behavior of an element's box within its layout and sets the layout behavior for its child elements.
The display: list-item CSS declaration renders an element with the box layout of a <li> HTML element.
The display: table CSS declaration renders an element with the box layout of a <table> HTML element. Child elements may use equivalents to <table> internal elements such as display: table-row for <tr>.
The em CSS length unit is a font-relative length equal to the specified font size. In an element with a 2 inch font, 1em equals 2 inches.
The <input type="email">, <input type="tel">, and <input type="url"> HTML elements represent email address, telephone number, and URL fields in a form.
The ex CSS length unit is a font-relative length equal to the used x-height of the first available font. X-height is often equal to the height of the lowercase x.
The position: fixed CSS declaration removes an element from the normal flow and positions it relative to the viewport or page.
The float CSS property aligns an element to either side of its container, allowing text and inline elements to flow around it. The clear CSS property sets whether an element is moved below floating elements that proceed it.
The font CSS property shorthand sets multiple font properties, including style, weight, size, and font family.
The font-family CSS property sets the desired font face for text, along with optional fallback font faces.
The font-size CSS property sets the text height.
The font-style CSS property sets the text style, with normal, italic, and oblique options.
The font-variant CSS property is a shorthand for font-variant-alternates, font-variant-caps, font-variant-east-asian, font-variant-emoji, font-variant-ligatures, font-variant-numeric, and font-variant-position.
The font-weight CSS property controls the thickness of a font. It is set explicitly with the keyword bold or a number, or relative to the inherited thickness with the keywords bolder or lighter.
The form validity CSS pseudo-classes match <form> elements based on the constraints of a form field, such as validity (:valid, :invalid, :in-range, :out-of-range) and necessity (:optional or :required).
Functions are series of statements that can be called and return a value. The function keyword (as in function () { }) and arrow (=>) expression create functions. The JavaScript functions protocol includes default and rest parameters and binding to this.
The getComputedStyle() global method returns an CSSStyleDeclaration object that represents all CSS declarations applied to a given element.
The linear-gradient() and radial-gradient() CSS functions and their repeating counterparts create backgrounds that progress smoothly between multiple colors.
The <area> and <map> elements define a clickable area on an image.
The inherit keyword resets any CSS property to the computed value of that property from the parent element.
The :checked, :disabled, and :enabled CSS pseudo-classes match form elements based on their state.
The for...of loop operates on a sequence of values sourced from an iterable object, such as arrays, array-like objects, DOM collections, iterators, generators, and user-defined iterables. All built-in iterators inherit from the Iterator class.
JavaScript is a programming language that runs in browsers, usually through the <script> element. JavaScript has changed over many years. This feature represents the oldest language features, such as built-in objects, statements, and operators. Also known as ECMAScript.
The JSON API provides static methods for parsing values from and converting values to JavaScript Object Notation (JSON), a serialization format for objects, arrays, numbers, strings, Boolean values, and null.
The letter-spacing CSS property controls the amount of space between each letter in an element or block of text.
The line-height CSS property sets the spacing between text baselines, oriented to the horizontal or vertical writing mode.
The list-style shorthand CSS property and the list-style-image, list-style-position, and list-style-type longhand properties set the position and appearance of a list item's marker.
Map objects hold key-value pairs and remember the original insertion order of the keys.
The margin CSS property sets space around an element. It is a shorthand for margin-top, margin-right, margin-bottom, and margin-left.
The number type (and Number object) represents floating-point numbers, such as 42 or -4.201, while the Math API contains mathematical functions and constants. JavaScript can also represent boundless negative and positive values as Infinity or not-a-number as NaN (as in 0 * Infinity).
The @media CSS rule conditionally applies styles based on the output device type, its capabilities, and the user's preferences. Media queries are composed of an optional media type such as screen or print, and one or more mandatory media features, such as prefers-reduced-animations.
Some CSS color values can be referenced by name, such as red or limegreen. They stand in for specific RGB color values.
Objects in JavaScript are collections of key-value pairs.
The opacity CSS property sets the transparency of an element.
The padding CSS property sets space between an element's edge and its contents. It is a shorthand for padding-top, padding-right, padding-bottom, and padding-left.
The physical CSS properties, top, right, bottom, and left, set the inset position of an element relative to the corresponding side of a container determined by the element's position property.
The pointer-events CSS property sets whether a user can interact with an element using a mouse, touch, or other pointing input device.
The position CSS property sets the origin position of an element to an element, the element's scrollport, or the viewport.
A promise represents an asynchronous operation which eventually succeeds or fails.
The RegExp object represents a regular expression, a notation for matching text patterns.
The position: relative CSS declaration offsets the position of an element relative to its position in the normal flow.
The rem CSS length unit is a font-relative length that is equal to the font size of the root HTML element which for most browsers is 16px.
CSS selectors match elements based on their type, attributes, and relationship to other elements. They define the specific elements to which a block of styles will be applied. This feature represents the oldest selectors of CSS.
Set objects store unique values of any type.
The position: static CSS declaration positions an element in the normal flow. A statically positioned element ignores physical and logical properties such as top or inset-block-start.
The string type (and String object) represents a sequence of characters.
The style global HTML attribute applies inline CSS styling declarations to individual elements.
The system color CSS keywords, such as ButtonBorder or LinkText, allow you to match default colors from the user agent.
The <table> HTML element, with several related elements, represents tabular data in rows and columns of cells.
The text-overflow CSS property sets how hidden overflow content appears to users. The property can clip content, truncate content with an ellipsis (…), or truncate with a custom string.
The <track> element is used as a child of the media elements that lets you specify a timed text track to be displayed in parallel with the media element.
The text-align CSS property sets the horizontal placement of the inner content of a block element.
The text-decoration CSS property sets the style and color of decorative lines including underline, overline, line-through, or a combination of lines.
The text-indent CSS property sets the size of the empty space (indentation) at the beginning of lines in a text.
The text-shadow CSS property sets the position and styles of shadow on text.
The text-transform CSS property sets text case and capitalization.
Typed arrays are ordered lists of JavaScript values, where all values are of the same numerical type, such as 8-bit integers or 32-bit floating point numbers.
The :active, :focus, and :hover CSS pseudo-classes match elements based on how users are interacting with them.
The vertical-align CSS property sets the vertical alignment of inline, inline-block, and table cell elements. It has no effect on block-level elements.
The visibility CSS property sets whether an element is shown. Invisible elements still affect the document layout.
A WeakMap object holds key-value pairs that do not create strong references to its keys, such that value data can be associated with a key without preventing garbage collection of the key.
The white-space CSS property sets how white space is collapsed and how lines wrap. It is a shorthand for white-space-collapse and text-wrap-mode.
The width and height CSS properties set the preferred physical size of an element.
The word-spacing CSS property sets the amount of white space between words.
The z-index CSS property orders overlapping elements, with higher values appearing in front of or on top of lower values.