CSS not used when response

K

Kjetil Nordahl

Hi

I'm not sure if this is a ASP.NET problem or maybe a SVG-viewer
problem.

I'm making a HttpHandler to generate response in SVG-format.
In the response I include a reference to a .css file.

When I do a request that get a response from the HttpHandler, the
SVG-code returned is ok. The SVG-document is shown in the browser, but
the style from the .css file is not used.

If I copy the source from the SVG-document I received, and saves this
in a "real document" on the web-server, and requests that document
(not using the HttpHandler), the style from the .css is applied.

How can this be?

I use Adobe SVG Viewer 3.01 (latest version)

best regards
Kjetil
 
K

Kjetil Nordahl

Just found out that what makes the difference. It is that on the page
where I use the HttpHandler the SVG-document is referenced inside an
OBJECT-tag.

Like this:
<OBJECT type="image/svg+xml" data="test.svg" />

So the problem is that when test.svg is inside the OBJECT-tag, the
CSS-file referenced inside test.svg is not applied.

Anyone who knows why, or if it is a solution to this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SVG Viewer 2
Advice on best way to migrate to a library 9
<embed> referenced page called 2 times 2
SVG Integration 1
svg plugin for outlook 0
IE and SVG Plugin 2
Inkscape 0.42 4
Rendering Vector Images 2

Top