A Future of Themes with CSS Container Style Queries is an experimental feature which has not yet landed in stable browsers at the time of writing. The style query approach is more of an experiment about how we might do the same in a cleaner way. Thehtml and selectors target the same element in the context of a standard web page.

15m read timeFrom chriskirknielsen.com
Post cover image
Table of contents
A note on specificityCurrent approach: write everything twiceCurrent approach: don’t repeat yourselfFuture approach: clean and readableFuture approach: with fallbackJSON tokens to CSSCaveats and issuesConclusionMore resources

Sort: