RE: Possible? External SVG, styled from parent document

On 2014-08-16 Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>
> SVG <img>s are actually in a separate document entirely; it's
> basically the same as an <iframe>, just locked down more
> strictly. We don't allow direct selection across document boundaries 
> for a combination of security, sanity, and performance reasons.
>

This is overall a very interesting topic. With a tighter integration of HTML5 and SVG2 I would expect more straightforward way how to control the style of nested SVG documents. At least in clearly defined relationships (somehow controlled by the author).

But there is still a way via scripting:
http://xn--dahlstrm-t4a.net/svg/html/get-embedded-svg-document-script.html

--Jan

Received on Wednesday, 27 August 2014 21:50:46 UTC