Re: [CSSOM] resolved value for top/left/bottom/right doesn't match most browsers

On Wed, 14 Mar 2012 13:45:02 +0100, Mike Sherov <mike.sherov@gmail.com>  
wrote:

> Currently, IE, FF, and Opera return the "used value" for
> top/left/bottom/right when "display" is not "none". Webkit returns the
> "computed value".

Actually, that's not quite true. IE and Opera resolve percentages, but not  
'auto', for instance (possibly this is closer to what "computed value" was  
supposed to mean in CSS 2.0 though I'm not sure). Even Firefox deviates  
 from the used value in the cases of 'relative' and 'static' position.

In particular, for <div style="position: relative; top: 50px; bottom:  
10px"></div> all the above browsers return 10px for 'bottom'. Though if  
existing content doesn't rely on that, changing it would be nice.

-- 
Øyvind Stenhaug
Core Norway, Opera Software ASA

Received on Wednesday, 14 March 2012 13:47:25 UTC