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

[css21] height/width computed value is wrong

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 11 Feb 2010 15:20:10 +0100
To: "CSS WG" <www-style@w3.org>
Message-ID: <op.u7yvfwxm64w2qv@annevk-t60>
 From work on getComputedStyle I figured out our current definition for  
computed value for both 'height' and 'width' does not match existing  
implementations (although I have not tested Internet Explorer). Here is a  
simple testcase:

   http://dump.testsuite.org/2010/width-computed-value.htm

If the blue bar is less wide than the window the user agent agrees with me  
that the definition is wrong. Namely it states that the computed value is  
'auto' if the property does not apply (e.g. when display is set to  
inline). Nobody follows this however. If we remove

   "; 'auto' if the property does not apply"

 from the computed value definitions we will match contemporary  
implementations. (And getComputedStyle can be defined somewhat more  
sanely.)


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Thursday, 11 February 2010 14:20:44 GMT

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