~/talk

Keynote: CSS Variables: var(--subtitle);

Talkat Frontend United 2017 · 2017-05-26..05-27· [css]
slides:none on file

CSS Custom Properties are usable today not just as prettier Sass variables but as real CSS properties that work like normal inherited properties and can be set inline or by JS. Live demos show gradients, themable buttons, SVG eyes, sliders and scroll progress bars built with variables and they work, with caveats: cannot concatenate strings or use variables in property names or media queries; cycles become invalid and animations flash unless JS metadata is provided. Browser support hits ~85% in the presenter’s chart and JavaScript can set/get them via setProperty/getPropertyValue to drive UI state.

AI-written summary · about

  1. 0:00Introduction
  2. 1:36CSS variables basics
  3. 6:04Inheritance and scope
  4. 9:01URL and string limitations
  5. 12:31Fallbacks and computed values
  6. 14:42Imperative vs declarative
  7. 18:34Browser support
  8. 22:12Using @supports
  9. 23:34Parsing and units
  10. 27:24Animations and transitions
  11. 31:27Component design patterns
  12. 35:11Practical use cases
  13. 40:44JS and CSS integration
  14. 57:11Conclusion
~/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.