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

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 UTC