Skip to content
Web & searchweak signalverifiedsupport checked August 22, 2026

May Baseline digest: container style queries and the :open pseudo-class

The May edition moves container style queries, the :open pseudo-class for dialog and details, ToggleEvent.source, image-rendering, text-decoration-skip-ink: all, and SharedWorker into newly available. The lh and rlh units, Navigator.userActivation, clip-path, and :user-invalid became widely available. Most of it takes work off JavaScript: state that used to be tracked in a script now has a selector of its own, and a component can finally read a custom property from its parent. Check the exact status for your own audience before you ship, because newly available and widely available are not the same thing.

By Redakcija WebAiRadarPublished 1 min readwritten by a model
Image: web.dev

The monthly Baseline digest is the shortest way to track what has become safe to use. The May edition brings several things that take work off JavaScript directly.

Newly available

  • Container style queries let you style based on a custom property of a parent element, which makes components genuinely self-contained.
  • The :open pseudo-class brings clean CSS for open and closed states on dialog and details.
  • ToggleEvent.source tells you which control opened a popover.
  • image-rendering controls how an image scales, which matters for pixel art and QR codes.
  • text-decoration-skip-ink: all forces an underline to skip every glyph.
  • SharedWorker is a background worker reachable from several contexts of the same origin.

Widely available

  • The lh and rlh units refer to the line height of the element and of the root element.
  • Navigator.userActivation checks whether the user actually initiated something.
  • clip-path cuts a shape using basic shapes and SVG paths.
  • The :user-invalid pseudo-class shows a form error only after the user has done something, rather than on load.

What pays off immediately

:user-invalid is the easiest win on forms, because it solves the familiar problem of red fields shouting before the user has typed anything. The lh unit tidies vertical rhythm without invented numbers.

Once a week, in your inbox

The whole week's news, gathered into one email. No ads, no passing your address on, one-click unsubscribe.

The address is used only for this roundup. It is not sold and not passed to anyone.

Related

Google's illustration: a search bar reading "Personal Intelligence" with app icons arranged around it, the Drive and Wallet icons large and sharp, the Gmail, Photos, and Calendar icons small and faded.
Web & searchmedium signal

Google's AI Mode can now draw on your Google Wallet spending if you connect it

Google is letting people connect Google Wallet to AI Mode, the conversational side of its search, with Drive and the Gemini app to follow. The connections are off until you turn them on, and Google says AI Mode can only read the accounts. AI Overviews will also start reflecting your recent searches, which you can switch off.

Googleverified