~/talk

Demystifying CSS Custom Properties

TalkinFrenchat DevFest du bout du monde 2019 · on Friday, 2019-02-22· [css, frontend-architecture]
slides:none on file

The talk explains practical use of CSS Custom Properties (CSS variables), showing they inherit and cascade, accept arbitrary strings, support fallback chains, and can be modified from JavaScript via the CSSOM API to drive live UI (a range-input demo updates multiple properties). It also covers limitations: you cannot safely concatenate units or URL fragments with variables, animations won’t interpolate unless a variable is typed or replaced by a real CSS property, and registerProperty can be used to define typed properties that fix animation behavior.

AI-written summary · about

  1. 0:00Introduction
  2. 0:22CSS Custom Properties overview
  3. 1:49Advantages of variables
  4. 3:13Fallback and inheritance
  5. 5:07Specificity and inheritance
  6. 6:30Limitations of variables
  7. 8:56Concatenation workarounds
  8. 9:17URLs and variables issues
  9. 10:00CSS variables animation
  10. 11:05CSS preprocessors vs variables
  11. 11:47Dynamic pages with JS
  12. 13:24Interactive demo: input range
  13. 15:09Web Components & Shadow DOM
  14. 15:50Overriding in Web Components
  15. 16:52@property advanced solutions
  16. 17:20Conclusion & Q&A
~/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.