~/talk

Media Queries Next Level

TalkinItalianat CSSDay 2018 · on Friday, 2018-03-16· [css, web-platform]
slides:none on file

Media Queries Level 4 adds concrete features for responsive CSS: a light-level media query to adapt contrast based on ambient light, refined pointer (coarse|fine|none) and hover queries to detect input precision, a scripting query to detect whether JavaScript is available, and custom-media plus new comparison operators (<=, >=) for clearer conditions. An example adapts an existing business web app to a fictional Samsung S18 by switching layout based on cursor type and ambient light; browser support is partial so some behaviors work only in Chrome or via tools like cssnext and several features remain unimplemented.

AI-written summary · about

  1. 0:00Start
  2. 6:57Samsung S18 Apocalypse
  3. 10:33New Syntax
  4. 12:01@custom-media
  5. 13:36@media (scripting)
  6. 16:33@media (light-level)
  7. 18:13@media (pointer)
  8. 21:24Challenges
  9. 21:56@media (any-pointer)
  10. 23:13@media (overflow-block/inline)
  11. 25:09@media (color-gamut)
  12. 25:54@media (update)
  13. 26:40When can we use the new media queries?
~/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.