~/talk

CSS Houdini - from CSS variables to JavaScript and back

Talkat NDC Oslo 2017 · 2017-06-14..06-16· [css, web-platform]
slides:none on file

Shows how to register CSS custom properties with the CSS Properties and Values API so properties become typed, validated and animatable, with JavaScript examples that update color sliders and transform values live. Demonstrates paint and animation worklets to implement GPU-friendly effects (sticky header/scroll snap in Chrome), a paint-based multi-color border polyfill that runs on demand, and measured gains (memory drops ~15→9 MB). All demos run in-browser and the APIs are polyfillable today.

AI-written summary · about

  1. 0:00Intro
  2. 1:14Preprocessors
  3. 2:57Native CSS Syntax
  4. 5:38Valid examples
  5. 6:33Declaration and use cases
  6. 13:11Calculate all the app colors from the base-color (theming)
  7. 14:48Changes to Custom Props have immediate effect
  8. 16:00CSS Properties are aware of the DOM structure
  9. 16:57Using Custom Properties With JavaScript
  10. 18:12Rotate page elements using CSS variables
  11. 19:16Check if supported
  12. 23:10Introducing CSS property types?
  13. 24:12Houdini group
  14. 29:42syntax of CSS properties Examples
  15. 31:12Native CSS Animation
  16. 32:16Web animation API
  17. 33:05Native JavaScript animation
  18. 35:19Browser rendering
  19. 39:38Paint Worklet example
  20. 45:21Compositor only properties
  21. 48:44Timeline and animate
~/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.