9. SVG and CSS –
is it good that SVG is stylable via CSS style sheets?
· Original SVG WG came very
close to deadlock over this issue
o ~6-month delay in original
spec while arguing this issue
o Utimately a compromise:
both XML attributes and CSS properties
· Why SVG+CSS was a good
idea:
o Allows HTML with inline
SVG to have a consistent styling model
o Commonality between HTML
and SVG is generally a good thing
· Why SVG+CSS was a bad idea:
o Considerably more
complicated to implement => slower performance
§ Even today, Canvas tends
to be considerably faster
o Even when available,
people don’t use CSS with SVG very much
· Whatever your personal
conclusion, browsers have implemented SVG+CSS and it’s here to stay