~/talk

Make the Web Brighter with the CSS Paint API

Talkat GDG DevFest Poland 2018 in Wrocław · 2018-10-26..10-27· [css, javascript]
slides:none on file

Explains how the CSS Paint API (Houdini worklet) actually generates images via registerPaint and a paint method that receives paint(ctx, geom, props, args), runs in a separate worklet thread, is stateless and cannot access DOM, and requires inputs via inputProperties or typed inputArguments. Shows Chrome 65+ support and a JS polyfill that creates canvases, demos: responsive generated backgrounds, ripples without extra DOM nodes, stars, QR codes, pie and bar charts, and measured bundles as small as ~800 bytes versus kilobyte images.

AI-written summary · about

  1. 0:00Introduction to CSS Paint API
  2. 1:28What is Houdini project
  3. 6:16Houdini APIs and Worklets
  4. 8:05CSS Paint API basics
  5. 11:50Browser support and polyfills
  6. 12:53Creating a Paint Worklet
  7. 15:52Hello World Paint Worklet demo
  8. 18:27Subscribing to CSS properties
  9. 20:35Passing arguments to Paint API
  10. 24:01Context options and performance
  11. 24:43Practical use cases for CSS Paint
  12. 25:05Generated backgrounds with CSS Paint
  13. 27:17CSS Paint vs traditional images
  14. 29:05Responsive design with CSS Paint
  15. 29:28Reducing DOM nodes with CSS Paint
  16. 30:13Custom star rating component
  17. 31:03Advanced demos: QR code generator
  18. 32:09Performance with WebAssembly
  19. 32:30Donut and pie chart visualizations
  20. 33:15Bar charts with CSS Paint
  21. 33:59Animating custom properties
  22. 35:52Stateful animations with particles
  23. 36:54Custom borders and effects
  24. 37:55Future of CSS Paint API
  25. 38:17Resources and closing
~/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.