W3C home > Mailing lists > Public > www-style@w3.org > September 2012

Re: [CSS21] Question on percentage, inherit and relative positioning: relpos-calcs-001 test

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 25 Sep 2012 21:23:01 -0400
Message-ID: <506258F5.6060605@mit.edu>
To: www-style@w3.org
On 9/25/12 9:04 PM, "Gérard Talbot" wrote:

 > div.outer's computed bottom value is -50%; therefore, div.outer's top
 > computed value should be +50%.

No, I don't see why.

div.outer's computed bottom value is "-50%".  Its computed top value is 
"auto".

Its used bottom value is "-60px".  Its used top value is "60px".

Inheritance happens on computed values, not used values.  So the 
inherited value of top is "auto".

> div.inner's top specified value should therefore be 50% but no browsers
> (Firefox 15.0.1, Chrome 22.0.1229.79 and Opera 12.02) reports such value.

Reports via what?  getComputedStyle?

Some UAs report used style for getComputedStyle(el).top, if that helps.

-Boris
Received on Wednesday, 26 September 2012 01:23:29 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:00 GMT