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

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 UTC