Una Kravets 8/3/2022

@container and :has(): two powerful new responsive APIs

Read Original

This technical article details the new CSS features @container queries and the :has() pseudo-class, now available in Chromium 105. It explains how container queries allow components to style themselves based on parent size, and how :has() selects parent elements. The guide includes code examples and demonstrates combining both features for powerful, intrinsic responsive web design.

@container and :has(): two powerful new responsive APIs

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week