Re: intrinsicRatio and the CSS min/max algorithm

On 8/9/13 1:59 PM, Benjamin Lord wrote:
> But since inline svg isn't replaced content, as I understand it none of this technically currently applies?

Well, the outermost <svg> is replaced content.  But not things that are 
inside that, since they don't even have CSS boxes, indeed.

> Well, in SVG1.1 using a percentage value for either height and or width on a rootmost svg is supposed to tell the browser to ignore that very percentage value (!) and instead to look at the viewBox dimensions to derive a ratio.

Ah, that may be how it works, yes.

> For one thing, the CSS min/max algorithm as it stands doesn't actually do anything with this intrinsic ratio.

Sure, but the algorithms for computing width and height do.  So if you 
have an intrinsic ratio and one of height and width set, then you use 
the ratio to compute the other one, then apply the min/max bits.

-Boris

Received on Friday, 9 August 2013 18:20:01 UTC