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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 4 19:20:36 PDT 2009


Gérard Talbot <browserbugs at gtalbot.org> changed:

           What    |Removed                     |Added
                 CC|                            |browserbugs at gtalbot.org

--- Comment #4 from Gérard Talbot <browserbugs at gtalbot.org>  2009-09-04 19:20:35 PDT ---
> Have I missed something in the spec?

Yes, I believe so.

Bug 14749 comment #14

Bug 26396 has more details.


 * "Percentages: refer to height of containing block" 
coming from CSS 2.1, Section 9.3.2 Box offsets: 'top', 'right', 'bottom',

  * Percentage values for the 'top' property are relative to the containing
  "if the element's position is 'relative' or 'static', the containing block is
formed by the content edge of the nearest block-level, table cell or
inline-block ancestor box." 
coming from CSS 2.1, Section 10.1 Definition of "containing block"

    * "If the height of the containing block is not specified explicitly (i.e.,
it depends on content height), and this element is not absolutely positioned,
[then] the [height] value computes to 'auto'." 
coming from CSS 2.1, Section 10.5 Content height: the 'height' property

The decisive factor to consider is 

a) when the containing block has a specified height

or (versus) 

b) when the containing block does not have a specified height: its height
depends on its content (intrinsic height).

bugzilla.mozilla.org, bugs.kde.org all have bug reports on this issue.

regards, Gérard

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

More information about the webkit-unassigned mailing list