Knowing that you have an excellent CSS parser, support for the SVG style element should not be a big problem
All circles in the following SVG should look the same:
All circles in the following SVG should look the same:
<svg width="12cm" height="4cm" viewBox="0 0 1200 400" xmlns="http://www.w3.org/2000/svg">
<style type="text/css">
.myredcircle { fill:red; stroke:blue; stroke-width:10; }
</style>
<rect x="1" y="1" width="1198" height="398" fill="none" stroke="blue" stroke-width="2"/>
<circle cx="200" cy="200" r="100" style="fill:red; stroke:blue; stroke-width:10;"/>
<circle cx="500" cy="200" r="100" fill="red" stroke="blue" stroke-width="10" />
<circle cx="800" cy="200" r="100" class="myredcircle" />
</svg>
- - -
Johann