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

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

From: Alan Gresley <alan@css-class.com>
Date: Wed, 25 Aug 2010 11:57:00 +1000
Message-ID: <4C74786C.8020006@css-class.com>
To: www-style@gtalbot.org
CC: www-style list <www-style@w3.org>
Gérard Talbot wrote:
> 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.

   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).



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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:38 UTC