~/talk

SVG Lessons I Learned The Hard Way

Talkat beyond tellerrand Düsseldorf 2015 · 2015-05-11..05-13· [web-platform, css]
slides:none on file

Practical takeaways: presentation attributes override inherited styles so SVG sprites with presentation fills break CSS targeting unless attributes use inherit or CSS variables (currentColor works cross‑browser); use element creates a shadow DOM clone, so styling must leak via CSS variables or be applied on the <use>; creating a circular menu using <object> caches but links open inside the object unless xlink:show/target points to _parent; fill="none" disables pointer events (use fill="transparent" or pointer-events); wrap inline JS/CSS in CDATA; use getBBox not getBoundingClientRect for SVG geometry.

AI-written summary · about

  1. 0:00Intro
  2. 5:07Presentation Attributes
  3. 10:14Override Presentation Attributes
  4. 11:37Using CSS Variables
  5. 15:01SVG Embedding
  6. 16:56Circular Menu Generator
  7. 17:56Solution
  8. 18:28Namespace
  9. 19:06Path Area
  10. 20:37Tiny Area
  11. 21:10Pointer Events
  12. 21:35Fill Transparent
  13. 22:02CSS JavaScript
  14. 22:51CSS JavaScript Error
  15. 23:37C Data Block
  16. 24:55Viewbox Attribute
  17. 26:19Coordinate System
  18. 27:44Viewport
  19. 36:42Bounding Rectangle
  20. 37:40GetBoundingBox
  21. 38:27Relative Positioning
  22. 40:02Position and Dimensions
  23. 40:23Example
  24. 41:54Extra Tip
~/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.