</>HTML & CSS News
LatestAuthorsRSS
Tag

#has

Tagged “has”

1 article
CSS & layout

Pseudo-classes are states, not events

CSS-Tricks reframes the everyday choice between :hover, :focus-visible, :has() and the matching JavaScript event listeners. The piece also previews the proposed event-trigger syntax in the Animation Triggers spec, which would let CSS bind animations to events instead of states.

Jun 29, 2026 · Iris Calderón
</>HTML & CSS News

Independent web-platform news — concise, vendor-neutral takes on HTML, CSS, accessibility and the browsers that ship them.

About

Latest newsAuthorsRSS feedSitemap