W3C home > Mailing lists > Public > www-style@w3.org > April 2006

Re: [CSS21] Does 10.6.7 apply to the root element?

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Fri, 7 Apr 2006 13:54:30 -0700
Message-ID: <c9e12660604071354q616c72bco88b138db36a68a02@mail.gmail.com>
To: "Anne van Kesteren" <annevk@opera.com>, www-style@w3.org

Most people think that root is the ICB, and in fact, IE behaves as if
it were. For example, in IE, documentElement.clientHeight will return
the viewport's height, but in mozilla, the root's height will grow to
accomodate it's children.

Mozilla's behavior is correct, because in reality, the root is not the
ICB. The root is the root and the ICB is the viewport.

If overflow on the root is applyied to the viewport instead, this will
further add to confusion and misunderstanding about the ICB and the
root.


Garrett


On 4/7/06, L. David Baron <dbaron@dbaron.org> wrote:
> On Friday 2006-04-07 15:50 +0200, Anne van Kesteren wrote:
> > Reading 10.6.6
> > http://www.w3.org/TR/2004/CR-CSS21-20040225/visudet.html#q22 and given
> > that 'overflow'
> > http://www.w3.org/TR/2004/CR-CSS21-20040225/visufx.html#overflow acts like
> > 'auto' when applied to the root element does
>
> 'overflow' effectively never applies to the root element since when it's
> set on the root element, it applies to the viewport instead.  This is
> clarified in changes we've made since the last public draft, so the rule
> that overflow on the root should be propagated to the viewport is no
> longer specific to HTML UAs, and is now a must instead of a should.
>
> > http://www.w3.org/TR/2004/CR-CSS21-20040225/visudet.html#root-height apply
> > to the root element? Testcase:
> >
> >  http://dump.testsuite.org/2006/www-style/001.htm
>
> I think that's a bug in Mozilla.
>
> -David
>
> --
> L. David Baron                                <URL: http://dbaron.org/ >
>            Technical Lead, Layout & CSS, Mozilla Corporation
>
>
>


--
http://dhtmlkitchen.com/
Received on Friday, 7 April 2006 20:54:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:44 GMT