CSS text/tspan fill ignored when using XSLT to generate SVG

RESOLVED INVALID

Status

()

Core
SVG
RESOLVED INVALID
7 years ago
7 years ago

People

(Reporter: jonathan chetwynd, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

(Reporter)

Description

7 years ago
open XML file,

text of first name should be in white, 
cf Opera, Webkit


Dupe? cant find.
(Reporter)

Comment 1

7 years ago
Created attachment 476747 [details]
xslt transform xml to svg
(Reporter)

Comment 2

7 years ago
Created attachment 476749 [details]
xml file that loads xslt
(Reporter)

Comment 3

7 years ago
Error loading stylesheet: A network error occurred loading an XSLT stylesheet:https://bugzilla.mozilla.org/attachment.cgi?id=476747

save the two attachments locally, and change the internal link.
or preferably advise how to set this up in bugzilla.
(Reporter)

Comment 4

7 years ago
the significant CSS is
Summary: CSS ignored when using XSLT to generate SVG → CSS text/tspan fill ignored when using XSLT to generate SVG
(Reporter)

Comment 5

7 years ago
the significant CSS is fill="#eee"
in the attachment tspan is used, but text was also tested.
You seem to have fill="eee" i.e. without the # in your files.
Attachment #476749 - Attachment mime type: text/xml → text/plain
http://www.w3.org/TR/SVG/types.html#DataTypeColor

Needs a hex digit to start. Your testcase doesn't.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → INVALID
(Reporter)

Comment 8

7 years ago
# oops tx,

having a bad-hair day, had to take an hour out....
Do we need to file a webkit bug (and an opera one) about this?
If it's true they are doing quirks mode colour parsing of XML, then I guess so.
If you point me to a testcase I can just load, I can tell you whether they are...
Created attachment 476862 [details]
eee

Opera does indeed display this in some light grey colour.
So does webkit.  I'll see if I can file some bugs.
for comment 7 s/hex/hash before the hex/
Filed opera bug (for which the followup mail is DSK-314092@bugs.opera.com) and a webkit bug at https://bugs.webkit.org/show_bug.cgi?id=46112
You need to log in before you can comment on or make changes to this bug.