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

[css3-writing-modes] height: fill-available's behavior is suboptimal

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 7 Jun 2012 17:23:56 -0700
Message-ID: <CAAWBYDDpAkfHvo+6pGShFmVX50o51nHtbeZgZt7vcboagsvKFQ@mail.gmail.com>
To: www-style list <www-style@w3.org>
Right now, fill-available is defined as taking the width/height of the
containing block and subtracting the element's relevant box-model
properties, so it fills up the containing block entirely.  This works
fine for 'width', given the way that various defaults work, but it's
bad for 'height'.

Ideally, height:fill-available would work similarly to how height:100%
does in quirks mode - it walks up the tree until it finds a box with a
defined height (stopping at the ICB), and sets itself to that height
minus the box-model props.

We could make it so that a height:min-content or height:fit-content on
the ancestor tree also stops the walk, and makes fill-available
resolve to the auto height instead, if we really want a switch.

Without this change, height:fill-available is about as useless as
height:100% is today - for it to do anything, you have to manually set
it on all the ancestors too.


Received on Friday, 8 June 2012 00:24:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:00 UTC