Re: [CSS 2.1] [Section 10.3.3] Questions on width of block-level, non-replaced elements in normal flow

Gérard Talbot wrote:
[snip]
> 2-
> The spec says:
> "
> If there is exactly one value specified as 'auto', its used value follows
> from the equality.
> "
> 
> What if the one single specified value as 'auto' is width and complying
> with the equation would imply that the used width is negative... How could
> this be?
> 
> E.g.:
> http://www.gtalbot.org/BrowserBugsSection/css21testsuite/block-non-replaced-width-0xx.html
> 
> I must be missing something here...
> 
> regards, Gérard


Yes you are missing something Gérard. The same results would be seen 
if the child had this.

div#child
   {
   border-right: green solid 200px;
   margin-right: 10000px;
   }


The div#child is completely overflowing it's containing block 
(div#containing-block) which is width:0. The visual overflow causes 
elements to overlap (this is not quite obvious in your test case).

<http://css-class.com/test/css/viseffects/overflow4.htm>

<http://css-class.com/test/css/viseffects/overflow5.htm>


-- 
Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo

Received on Wednesday, 25 August 2010 01:57:32 UTC