W3C home > Mailing lists > Public > www-svg@w3.org > July 2014

Re: viewport units in SVG

From: Chris Lilley <chris@w3.org>
Date: Wed, 23 Jul 2014 17:19:45 +0200
Message-ID: <10310487313.20140723171945@w3.org>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: Dirk Schulze <dschulze@adobe.com>, www-svg <www-svg@w3.org>, FX <public-fx@w3.org>
Hello Tab,

Wednesday, July 23, 2014, 4:25:31 PM, you wrote:


> There's one case in CSS where that's not strictly true: if you use
> viewport units are used inside of an iframe'd document, they're
> relative to the size of the iframe, as that's the "size of the screen"
> as far as the CSS inside of the iframe document can tell.

That seems fine.

>  (It applies
> to MQs too, etc.)  This means that a *linked* SVG, via <iframe> or
> <img> or the like, would use the linking element's dimensions to
> define its viewport units, but an inline SVG would use the outer
> document.  This seems fine to me.

Yes.

Furthermore, HTML (or whatever)styled with CSS box model, inside SVG
foreignObject, would use the size of the foreignObject viewport to
define its viewport units (like the iframe case)  and also as the size
of its outermost containing block.


-- 
Best regards,
 Chris                            mailto:chris@w3.org
Received on Wednesday, 23 July 2014 15:19:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:37 UTC