</>HTML & CSS News
LatestAuthorsRSS
Tag

#style-queries

Tagged “style-queries”

3 articles
CSS & layout

Style queries let the parent set the variant, not the class

On CSS-Tricks, Kevin Powell uses container style queries, which the article says are now Baseline Newly Available, to let an ancestor set a custom property that components respond to instead of putting a modifier class on every child. He says they sit alongside modifier classes rather than replacing them.

Nov 25, 2026 · Iris Calderón
CSS & layout

Rebuilding :nth-child() out of sibling-index(), if() and mod()

Temani Afif rebuilds the :nth-child() patterns on CSS-Tricks with sibling-index(), if() style queries and mod(), so the step and offset can come from custom properties. The features are still drafts with limited browser support.

Nov 6, 2026 · Iris Calderón
Accessibility & semantics

Icons injected by CSS stay silent for screen readers, so icon-only buttons still need a name

Lea Verou proposes moving UI icons out of inline SVG and into CSS, as design tokens painted by masked pseudo-elements. The approach is quiet for assistive technology by default, and it gives icon-only controls a way to supply their own accessible name.

Oct 12, 2026 · Marcus Osei
</>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