2027 Web Platform Feature Ranking

Morten Sørensen

Ranked proposals (top = most important)

  1. CSS var() in size container queries

    Such as @container (width >= var(-⁠-⁠min-⁠width)).

  2. CSS grid lanes (masonry)

    display: grid-⁠lanes creates a layout where items are tightly packed into parallel lanes.

  3. CSS line-⁠clamp property

    Limits the text in a block container to a certain number of lines. Also allows custom end text if content overflow occurs.

  4. Allow CSS transitioning/animating display and content-⁠visibility

    Useful for delaying display: none until an exit animation completes.

  5. CSS interpolate-⁠size property and calc-⁠size() function

    Allows animating to height: auto, and using intrinsic sizes in calculations.

  6. CSS corner-⁠shape property

    Alternative shapes for border-⁠radius, such as squircles and bevels.

  7. CSS border-⁠shape property

    Sets the geometry of the border box to a fully custom shape, changing the shape of borders, outlines, and shadows.

  8. CSS @function

    Defines custom functions that take arguments and return a CSS value.

  9. Customizable/stylable <select>

    Customize the button, selected option, picker, and options with CSS.

  10. Responsive iframes

    The frame-⁠sizing CSS property sizes an <iframe> to its content, avoiding scrolling within the iframe.

  11. CSSPseudoElement API

    Represents pseudo-elements in JavaScript, allowing things like detecting clicks on a ::backdrop.

  12. Trusted Types

    Ensures input has been passed through a transformation function before being passed to an API that might execute that input.

  13. JavaScript Temporal

    A modern and extensive date/time API to replace Date.

  14. WebVTT

    WebVTT files are loaded using the <track> element, and the VTTCue API can be used to create or update cues dynamically.