3. David Corbacho Román
Senior Drupal developer - Frontend
Drupal core contributor, module maintainer
(d.o. user: corbacho)
We are hiring
London
Twitter
@dcorbacho
25. Why SVG? Small size
For example, new google logo, 305 bytes
SVG DOM
http://gizmodo.com/how-could-googles-new-
logo-be-only-305-bytes-while-its-1728793790
26. 1. Brief introduction to SVG
2. The past
3. The present. Using SVG
4. SVG and Drupal
5. SVG 2: The future
Structure
27. SVG 1.0 begins in 1998
http://www.w3.org/Talks/2014/schepers-accessible_graphics/rise-and-fall.svg
http://www.w3.org/Graphics/SVG/WG/wiki/Secret_Origin_of_SVG
SVG 1.0 = XML + SVG + DOM +
CSS + Animations +
Filters + XLINKS + …
51. SVG adds a new dimension of possibilities
5 ways of embedding SVG in your HTML
x
multiple ways of scripting SVG
x
multiple ways of adding CSS
x
multiple ways of “reusing” SVG elements xlink, def, symbol, fill, etc
x
html in your svg (foreignObject)
x
svg in your svg (nested svg)
x
svg in your CSS
x
multiple ways of animating techniques and libraries
x
multiple browsers. Fallback techniques
caniuse.com
can’t track
every single
combination
73. Drupal SVG
Guidelines (on work)
https://www.drupal.org/node/2433761
Similar project https://svgontheweb.com/
74. Drupal 7 has 0 SVG files in core
Drupal 8 has 79 SVG files in core
We use them as images, not taking full potential
SVG Sprite for toolbar icons
https://www.drupal.org/node/2306499
79. SVG 2 will bring more integration
with new web features such as
CSS, HTML5 and WOFF.
http://www.w3.org/Graphics/SVG/WG/wiki/SVG2_Requirements_Commitments
82. Conclusion
SVG is not new.. but it’s here to stay.
Now it’s the time.
and let’s bring more SVG goodness to
Drupal
83. Resources
Dmitry Baranovskiy - You Don't Know SVG
https://www.youtube.com/watch?v=SeLOt_BRAqc
"If you don't know svg you can't call yourself a Web Developer.
Call yourself a Web Enthusiast” — Dmitry
Tavmjong Bah - SVG 2 For the Artist and Developer
https://www.youtube.com/watch?v=UL2-ZAyvXOM
Everything that Sarah Soueidan publishes.
http://sarasoueidan.com/articles/index.html
CSS Tricks. SVG category
2nd edition!