[Webkit-unassigned] [Bug 18542] Quirks: position: relative; top: 50%; should work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 16 19:00:22 PDT 2008


apapirovski at mac.com changed:

           What    |Removed                     |Added
                 CC|                            |apapirovski at mac.com

------- Comment #3 from apapirovski at mac.com  2008-04-16 19:00 PDT -------
As far as I'm concerned the spec says something different. In CSS 2.1
(http://www.w3.org/TR/CSS21/visuren.html#position-props) this section was

"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'."

and there is no loger any mention of special case for height auto resulting in
top: 0; which leads me to believe that we should be calculating the content
height for the container and then using that as base value. (So not 100% in the
case of body, but whatever the content height is.)

Have I missed something in the spec? (I've got a patch ready for syncing-up our
behavior to Firefox 3, which is only applying percentage top and bottom values
if the parent height is either fixed or percentage, not auto.)

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list