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 14:08:44 +1000
Message-ID: <4C74974C.2070301@css-class.com>
To: www-style@gtalbot.org
CC: www-style list <www-style@w3.org>
Alan Gresley wrote:

> To follow up, what is happening is the declared value of div#child of 
>  margin-right: 400px (in Gérard's test case) or my ridiculous 
> margin-right: 10000px are completely being ignore. The computed value is 
> margin-right: -400px.
[snip]

I am wrong, the computed value is margin-right: -200px. It is as if 
the CSS was as follows.


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


The div#containing-block and div#child width and the generated 
containing block width are both width: 0px.





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

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
Received on Wednesday, 25 August 2010 04:09:16 GMT

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