~/talk

Make the Web Brighter with the CSS Paint API

Talkat RuhrJS 2018 · on Sunday, 2018-10-14· [web-platform, web-performance]

CSS Paint API shows concrete hacks not promises: paint worklets run off the main thread with a 2D canvas context and paint worklet registration, responsive images redraw on element resize, and Chrome 65 already implements it. Examples draw circles, stars and material-like backgrounds, render a working QR code generated via a sync module import, build pie/donut and bar charts (G3 import suggested), try WebAssembly import unfinished, and animate via requestAnimationFrame or typed custom properties.

AI-written summary · about

  1. 0:00Start
  2. 2:35CSS Engine Internals
  3. 3:37Polyfill with JS
  4. 6:35Use in CSS
  5. 7:55CSS Fallback
  6. 9:19Declare a custom paint class
  7. 10:05Register paint
  8. 10:36Load worklet
  9. 11:29Paint Hello World
  10. 14:01CSS Paint + variables
  11. 16:19CSS Paint + arguments
  12. 17:21CSS Paint + alpha
  13. 17:50chrome://flags/#enable-experimental-web-platform-features
  14. 19:53Material Background
  15. 21:35QR Code
  16. 22:50Circle Chart
  17. 28:10Custom Properties Level 2
  18. 29:05BAR CHART ANIMATION
  19. 30:39Resources
  20. 31:16Demos
~/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.