W3C home > Mailing lists > Public > www-style@w3.org > September 2010

Re: [CSS 2.1] [Section 10.3.x] Testcases where percentage intrinsic width cannot be resolved

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sat, 25 Sep 2010 01:06:19 -0400
Message-ID: <4C9D834B.7080208@mit.edu>
To: Anton Prowse <prowse@moonhenge.net>
CC: "www-style@w3.org list" <www-style@w3.org>
On 9/24/10 2:38 PM, Anton Prowse wrote:
> I think Gérard's point was precisely that the blue square /is/ half its
> intrinsic width (48px instead of 96px) in several browsers.

Yep.  And it's 24px wide in the remaining ones.

> Whilst the width of the square is undefined in full generality, CSS21 10.2 (in
> agreement with HTML4) makes it clear that the /intent/ is that the width
> not depend on the intrinsic width

Er... how so?

> it's not unreasonable to expect UAs
> to avoid to shrinking the blue square to half its intrinsic width in
> these fairly simple test cases which don't involve unsolvable constraints.

Every single UA (quite reasonably) makes the blue square half the width 
of the shrink-wrapping container.  The only question is whether the 
width of the shrink-wrapping container is 96px or 48px.  The browsers 
that make it 96px use the intrinsic width of the image to make that 
determination.  The remaining ones apparently treat the image as having 
a width of 0 for shrink-wrapping purposes, so end up making the 
container the width of the orange div.

-Boris
Received on Saturday, 25 September 2010 05:12:23 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:31 GMT