CSS in depth I: the cascade and modern selectors
Predict which styles apply and organise CSS at scale.
- WEB.08.01The cascade, specificity and inheritanceCoreMid-level11 min
- WEB.08.02Cascade layers and scopingMid-levelBeing written
- WEB.08.03Custom properties and modern selectorsCoreMid-level11 min
Interview questions in this module
- How does the browser decide which CSS rule wins?
- How is specificity calculated?
- What are cascade layers and what problem do they solve?
- What is the difference between
:is()and:where()? - What can
:has()do that was impossible before? - CSS-in-JS vs CSS Modules vs utility CSS: what are the trade-offs?