~/talk

The Algorithms of CSS

Talkat CSSconf EU 2018 · on Friday, 2018-06-01· [css, frontend-architecture]
slides:none on file

Argues that CSS is a domain-specific declarative programming language, then maps spec to browser source (Servo/Blink) using searchfox.org and cs.chromium.org to read Rust and C++ that implement the cascade. Proposes an algorithmic workflow: plan inputs/outputs, write a brute‑force “spaghetti” CSS solution, test, then refactor into system‑friendly rules that use intrinsic algorithms like display:flex and Grid. Demonstrates it by building and optimizing a responsive “ocean boxes” layout that works and makes CSS authoring faster and more intentional.

AI-written summary · about

  1. 0:00Start
  2. 2:56Is CSS a programming language?
  3. 3:58What is a programming language?
  4. 8:04CSS is a domain - Specific declarative programming language.
  5. 8:34Algorithms 101
  6. 12:15The Cascade!
  7. 24:43Conclusion!
~/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.