Re: absolute-replaced-width-016/017/018 incorrect

On 10/13/10 7:32 PM, L. David Baron wrote:
> The tests:
> http://test.csswg.org/suites/css2.1/20100917/xhtml1/absolute-replaced-width-016.xht
> http://test.csswg.org/suites/css2.1/20100917/xhtml1/absolute-replaced-width-017.xht
> http://test.csswg.org/suites/css2.1/20100917/xhtml1/absolute-replaced-width-018.xht
> appear to me to be incorrect.
>
> The svg element in these tests has no intrinsic ratio and no
> intrinsic size, since it has no viewBox and no height/width
> attributes.

SVG defaults the width/height attributes to 100% if they're not 
specified.  So the sizing there looks correct (and is interoperable at 
least with Webkit and Presto).

> Nonetheless, given the size of the svg element, the blue box should
> begin either in the upper *left* corner of the black box, or
> actually slightly to the left of that.

Yes, agreed (this is the rendering Gecko and Presto have, for what it's 
worth; Webkit seems to not show the blue rectangle there at all).

-Boris

Received on Thursday, 14 October 2010 00:40:08 UTC