~/talk

CSS Cascade Layers

Talkat WebExpo 2022 · 2022-06-10..06-12· [css, web-platform]
slides:none on file

CSS Cascade Layers let authors assign declarations to named bins whose order of establishment directly decides priority so app styles can override framework styles without fiddling with specificity. Layers can be created with @layer, @import, or declared empty then filled later; examples use reset, framework, app, behavior layers and show a hover override working. The modifier !important reverses layer order (important layer rules outrank nonimportant ones). Browser support is mostly green on caniuse so this is ready to experiment with.

AI-written summary · about

  1. 0:00Start
  2. 4:20Conflicting instructions
  3. 5:34The Cascade
  4. 11:31CSS Layers and !important
  5. 13:10Example usage
  6. 16:13Browser support
  7. 17:42Questions?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.