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

Re: [CSS Intrinsic & Extrinsic Sizing] sizing of absolutely positioned elements

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 19 Oct 2012 13:41:00 -0700
Message-ID: <CAAWBYDC7ithfLikNEkzskoJp0dn4su-_E7ZbEN7vwOOcS1M=5Q@mail.gmail.com>
To: Ojan Vafai <ojan@chromium.org>
Cc: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
On Fri, Oct 19, 2012 at 1:06 PM, Ojan Vafai <ojan@chromium.org> wrote:
> Just to make sure I understand this, what happens in the following case:
>
> <div style="position: relative; padding: 100px">
>     <div style="position:absolute; height: fill-available"></div>
> </div>
>
> The way I read the spec, the absolutely positioned div should be 200px tall,
> yes?

Correct.  The containing block for the abspos is the padding box of
the relpos, which is 200px tall.

~TJ
Received on Friday, 19 October 2012 20:41:48 GMT

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