Brifing

August 2026 Baseline Digest: New CSS Pseudo-Classes and Declarative Shadow DOM

Key web platform capabilities achieve cross-browser interoperability alongside AI-assisted modern CSS workflows.

web.dev2 min

1August 2026 Baseline Milestone

The August 2026 Baseline digest covers newly interoperable web features across all core browser engines. Authored by Jeremy Wagner, the release tracks tools transitioning to Baseline Newly available and Widely available tiers. These milestones clarify when engineers can safely drop polyfills and adopt standardized APIs directly.

2Modern Guidance for AI Agents

Brecht De Ruyte explored using Google's Modern Web Guidance to guide AI coding assistants toward modern standards. Pairing these platform guidelines with custom design token rules prevents agents from generating legacy HTML and CSS patterns. This setup preserves design system consistency while adhering to current Baseline practices.

3State Tracking with :paused

The :paused CSS pseudo-class reached Baseline Newly available status across core browser engines. It targets playable elements like audio and video when playback pauses or before playback starts. Distinguishing paused playback from buffering or seeking enables developers to style custom media controls entirely through native CSS rules.

4Dynamic Layouts with sibling-count

The newly available sibling-count() function resolves to an integer representing total sibling elements sharing a parent container. Unlike the counter() function, which returns strings for generated content, sibling-count() integrates directly inside calc(). This lets developers compute proportional column widths without running JavaScript or hardcoding layout parameters.

5Widely Available Shadow DOM

Declarative Shadow DOM reached Baseline Widely available status after 30 months of consistent engine support. Developers can define shadow roots directly in HTML via template tags using shadowrootmode attributes. This feature eliminates manual Element.attachShadow() calls and is considered production-safe without polyfills across all major browsers.

6Fixing Server-Side Rendering FOUC

Declarative Shadow DOM solves key server-side rendering challenges for web components. Encapsulated styles render immediately on initial page load, eliminating flashes of unstyled content. Search engines and clients lacking JavaScript can parse the markup properly, expanding accessibility and indexability for component-driven server architectures without runtime overhead.

7Native Replacements for Scripting

These updates demonstrate the ongoing transition of DOM management logic into standard browser primitives. Replacing JavaScript-driven layout calculations and manual shadow root attachments with native CSS and declarative HTML reduces bundle sizes. Client-side execution overhead drops significantly when browsers handle structural layout and media state natively.

8Practical Adoption and Feedback

Engineering teams can adopt Declarative Shadow DOM universally while planning phased rollouts for :paused and sibling-count(). The Baseline initiative continues collecting community contributions and issue reports via its dedicated public tracker. Developers should verify legacy browser requirements before stripping polyfills for the newest Baseline additions.

Original article: web.dev — August 2026 Baseline Digest: New CSS Pseudo-Classes and Declarative Shadow DOM