~/talk

"Stop using JavaScript for that: moving features from JS to CSS and HTML"

Talkat Frontrunners 2025 · on Friday, 2025-03-21· [web-platform, css]
slides:none on file

Claims that many UI patterns no longer need JavaScript and demonstrates concrete replacements and browser support. Examples: toggles built from a checkbox using appearance: none and :checked, keyboard focus via :focus-visible, smooth fragment jumps with scroll-behavior: smooth plus scroll-margin, accordions via details/summary, and modal behavior with the HTML dialog and showModal API (small JS to open). Field-sizing, customizable selects and scroll-driven animations already exist in Chromium or Safari tech previews; accessibility and browser-managed animations work reliably.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27HTML/CSS over JavaScript
  3. 4:43Custom switches in HTML/CSS
  4. 12:31Native switch styling
  5. 13:15Smooth scrolling with CSS
  6. 16:04Scroll margin/padding for headers
  7. 17:30Target highlighting with CSS
  8. 18:13Accordions with HTML details
  9. 21:47Dialog element for modals
  10. 25:15Animating dialogs with @starting-style
  11. 26:40Upcoming CSS field sizing
  12. 27:47Customizable select elements
  13. 30:27Scroll-driven CSS animations
  14. 31:12Q&A
~/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.