Bug 25783 - User Agent stylesheets are not applied to the results of XSLT transforms
Summary: User Agent stylesheets are not applied to the results of XSLT transforms
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: XML (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://www.honte.eu/playGo/games/Shus...
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2009-05-14 02:12 PDT by jay
Modified: 2011-06-28 09:13 PDT (History)
1 user (show)

See Also:


Attachments
svg that is transformed by Safari if the user has a linked stylesheet (18.08 KB, image/svg+xml)
2009-05-14 06:58 PDT, jay
no flags Details
set this as your user agent style sheet (63 bytes, text/css)
2009-05-14 07:12 PDT, Eric Seidel (no email)
no flags Details
put this in the same directory as the test.svg file (268 bytes, text/xml)
2009-05-14 07:13 PDT, Eric Seidel (no email)
no flags Details
open this file with test.xsl in the same directory and your user agent style sheet set to test.css (61 bytes, image/svg+xml)
2009-05-14 07:13 PDT, Eric Seidel (no email)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jay 2009-05-14 02:12:13 PDT
set browser preferences to a user stylesheet such as:
http://www.honte.eu/help/user.css

check working with say:
http://www.honte.eu/playGo/playGo.svg

board should be grey

now visit URL
this is very similar, but transformed using XSLT
stylesheet is ignored

parity Opera & Firefox
Comment 1 Eric Seidel (no email) 2009-05-14 06:19:23 PDT
The URL is too large to count as a reduction. :)

http://www.honte.eu/playGo/games/Shusai-GoSeigen-19340119.xml

Looks like it displays fine?  It's an XML file which is displaying as an SVG.  What part is missing?

Our rendering (in Safari 4) looks identical to FF3 as far as I can tell.

Please re-open if you have further information.
Comment 2 jay 2009-05-14 06:51:01 PDT
#1 eric,

please refrain from closing bugs before reading them...
you HAVE to create a user stylesheet and link to it using preferences or another method ie for firefox save in chrome directory

then you will see that the board is grey for both attachment and url in opera or ff, but only for attachment in safari.

the test case being the css file is around 10 bits small enough imho, and possibly one of the smallest ever submitted ~:"
Comment 3 jay 2009-05-14 06:58:15 PDT
Created attachment 30333 [details]
svg that is transformed by Safari if the user has a linked stylesheet
Comment 4 Eric Seidel (no email) 2009-05-14 07:12:39 PDT
Created attachment 30336 [details]
set this as your user agent style sheet
Comment 5 Eric Seidel (no email) 2009-05-14 07:13:07 PDT
Created attachment 30337 [details]
put this in the same directory as the test.svg file
Comment 6 Eric Seidel (no email) 2009-05-14 07:13:54 PDT
Created attachment 30338 [details]
open this file with test.xsl in the same directory and your user agent style sheet set to test.css
Comment 7 Eric Seidel (no email) 2009-05-14 07:16:40 PDT
Now that I understand what this bug is asking, yes this seems to be broken.  I assume that user agent stylesheets are broken with XSLT files regardless.  I can't imagine this is SVG specific.

Interestingly enough, if you set your user agent stylesheet *after* loading the xsl-styled page, then it works.  We seem to not be re-applying user agent stylesheets after applying XSL transforms.