Style queries let you query the style of any parent element within a page and apply styles to its children based on the styles of its parent. Style queries are not landing in the initial implementations of container queries in Chromium and Webkit. Both browser engines currently plan to ship with size query and container query unit support 1 .
Table of contents
Container Queries: a quick summaryStyle Queries1. Immediate parent style queries2. Styling non-inheritable properties3. Chained styles4. Grouping styles with higher-order variables5. Interactions in CSS6. Combinator queriesConclusion9 Comments
Sort: