~/talk

The [svg] of .svg

Talkat CSSConf Budapest 2017 · on Wednesday, 2017-10-25· [css, web-platform, accessibility]
links:none on file
slides:none on file

Shows concrete recipes: use viewBox plus preserveAspectRatio="slice" to reproduce CSS object-fit/position and crop user uploads entirely in SVG, working back to IE9; wrap SVG in a container and use the padding-top hack to make those crops responsive; embed raster with an <image> and apply an SVG luminance mask to get PNG-like transparency while serving a JPEG; use <object>, <use>, <switch> and foreignObject patterns to keep text selectable and cacheable as on the Smashing redesign.

AI-written summary · about

  1. 0:00Start
  2. 2:21Svg Superpowers
  3. 2:42Differentiate between the Svg View Box and the Svg View Port
  4. 3:21The Viewport of the Svg
  5. 3:46Coordinate System
  6. 5:14The Svg View Box
  7. 8:48Background Images
  8. 9:18The Preserve Aspect Ratio Attribute
  9. 11:22Cropping and Preserving Aspect Ratio of Non Svg Images
  10. 12:06Object Position
  11. 17:39Maintaining Aspect Ratio and Css
  12. 19:28The Padding Hack
  13. 22:15Preserve Aspect Ratio
  14. 23:29Svg Masks
  15. 28:29Seven Ways To Embed Svg Is on a Page
  16. 32:14Svg Document Structure Specification
  17. 32:42Switch Element
  18. 33:30Foreign Object
~/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.