Skip Menu |

This queue is for tickets about the SVG CPAN distribution.

Report information
The Basics
Id: 79721
Status: new
Priority: 0/
Queue: SVG

People
Owner: Nobody in particular
Requestors: FGA [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 2.53
Fixed in: (no value)



Subject: No external stylesheet support?
Hello, I'm trying to build an SVG with an external stylesheet, the spec seems to say it should be like this: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <?xml-stylesheet href="share/style-scatter/style.css" type="text/css"?> I've tried both $svg->style(type => 'text/css', -href => 'share/style-scatter/style.css'); $svg->firstChild->style(type => 'text/css', -href => 'share/style-scatter/style.css'); both add a style element to the <svg> root, like this: <style type="text/css" xlink:href="share/style-scatter/style.css" /> This doesn't seem to work in either Firefox or Inkscape, all the rectangles are completely black instead. Editing the file by hand to remove the <style> element and add the <?xml-stylesheet?> after the DOCTYPE declaration restores all styling. Am I doing something wrong or is a global stylesheet a missing feature in the SVG module?