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: Gérard Talbot <www-style@gtalbot.org>
Date: Tue, 25 Sep 2012 21:28:28 -0400
Message-ID: <fa9a9d2d46321675c5f9a5063f2902a8.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Boris Zbarsky" <bzbarsky@MIT.EDU>
Cc: www-style@w3.org

Le Mar 25 septembre 2012 21:23, Boris Zbarsky a écrit :
> 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".

Thanks Boris: this is exactly what I was missing. Inheritance is on
computed values not their used values.


>
>> 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?

Their respective web debugger tools: Firefox's DOM inspector, Opera
DragonFly, Chrome Web inspector.


Gérard
-- 
CSS 2.1 Test suite RC6, March 23rd 2011
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

Contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

Web authors' contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Wednesday, 26 September 2012 01:28:56 GMT

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