Svgle can now handle inline CSS

require 'svgle'
 
s =<<SVG
<svg width="400" height="110">
  <style>
    line {stroke: green}
  </style>
  <g id="group1" fill="red">
    <line x1="0" y1="0" x2="200" y2="200" style="stroke:rgb(255,0,0);stroke-width:2" />
  </g>
</svg>
SVG


doc = Svgle.new(s)
line = doc.root.element('g').element('line')
#=> <line x1='0' y1='0' x2='200' y2='200' style='stroke:green;stroke-width:2'> ... </>