Re: viewport units in SVG

On Wed, Jul 23, 2014 at 8:19 AM, Chris Lilley <chris@w3.org> wrote:
> Wednesday, July 23, 2014, 4:25:31 PM, you wrote:
>>  (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.

Yeah, <foreignObject> is basically an inline-markup iframe.

~TJ

Received on Wednesday, 23 July 2014 17:39:58 UTC