Chapter 08
Modern CSS
Features that changed how CSS is written: custom properties and@property, :has(), nesting, @scope, logical properties, and shipping new CSS safely with feature queries.- 010How do custom properties work — cascade, inheritance, fallbacks, and invalid values?Coremedium
- 020What does
@propertyadd over a plain custom property?medium - 030What does
:has()make possible, and what are its limits?medium - 040How does native CSS nesting work, and how does it differ from Sass?medium
- 050What does
@scopedo, and how is scoping proximity different from specificity?hard - 060What are logical properties, and why use
margin-inlineovermargin-left?easy - 070How do you ship new CSS safely — forgiving parsing and
@supports?medium