The question says it all.
Which new CSS and HTML features are safe to use in 2026?
1 answer
Check a feature's Baseline badge on MDN or web.dev before you use it. "Widely available" means every major browser has had it long enough to rely on. "Newly available" means it works everywhere now, but people on older browsers may not have it yet, so keep a fallback.
A lot of what used to need a JavaScript library, like tooltips, modals and scroll effects, is turning into plain HTML and CSS. That means less code to ship and less to break.
What the browsers are working on together
Interop 2026 was announced on 12 February 2026 by Apple, Google, Igalia, Microsoft and Mozilla. Its 20 focus areas include:
- anchor positioning, for tooltips and menus that stick to a button
- container style queries
- dialogs and popovers, including
closedbyon<dialog>, the:openpseudo-class andpopover="hint" - scroll-driven animations and view transitions
attr(),contrast-color()andshape()- the Navigation API, scroll snap, WebRTC, and IndexedDB
getAllRecords() - media pseudo-classes such as
:playingand:paused
Interop areas are where browsers agree to fix differences, so these get more reliable through the year.
What reached Baseline this year
- February 2026: Trusted Types became Baseline, and
Map.getOrInsert()became newly available. - August 2026 digest:
:pausedandsibling-count()became newly available, and Declarative Shadow DOM became widely available.
How I decide
- Look up the feature on MDN or webstatus.dev.
- Widely available: use it.
- Newly available: use it if the page still works without it. A popover that falls back to a plain link is fine. A checkout that breaks is not.
- Only in Interop or behind a flag: experiment in a side project, not on the page that pays your bills.
Using the platform instead of a library makes your site lighter and faster on cheap phones, and that is most of your visitors.
Sources:
Your answer
Know the answer? Sign in and share it. Useful answers earn points.
Sign in to answer