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

Re: [CSS21] percentage values of 'top'

From: Anton Prowse <prowse@moonhenge.net>
Date: Fri, 05 Jun 2009 20:36:50 +0200
Message-ID: <4A2965C2.9080002@moonhenge.net>
CC: "www-style@w3.org" <www-style@w3.org>
Jorrit Vermeiren wrote:
> It looks like this behaviour is "just" a vestige of CSS2. That says
> the following about percentage values: "For 'top' and 'bottom', if the
> height of the containing block is not specified explicitly (i.e., it
> depends on content height), the percentage value is interpreted like
> 'auto'." [1]


My apologies to the list for not doing my research before posting; this 
issue has already been raised before[1], and fantasai responded saying,[2]

 > The spec was actually changed so that percentages for top/bottom *do*
 > work. Behavior in this case was previously explicitly undefined:
 >    http://www.w3.org/TR/CSS21/changes.html#q53
 > So that means at some point the browser implementors discussed it and
 > decided it should be possible. I guess it just hasn't been done yet :)

The corresponding bug in Gecko is [3], in which Boris Zbarsky does 
indeed state[4] that the behaviour currently implemented in Gecko is 
that specified in CSS2.

[1] http://lists.w3.org/Archives/Public/www-style/2007Aug/0139.html
[2] http://lists.w3.org/Archives/Public/www-style/2007Aug/0152.html
[3] https://bugzilla.mozilla.org/show_bug.cgi?id=260348
[4] https://bugzilla.mozilla.org/show_bug.cgi?id=260348#c14

Anton Prowse
Received on Friday, 5 June 2009 18:38:03 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:27 UTC