[Webkit-unassigned] [Bug 36942] New: Nested spans with "position: absolute" misalignment

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 1 00:53:09 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=36942

           Summary: Nested spans with "position: absolute" misalignment
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: steven at acko.net


Given:
<span style="position: relative">
  <span style="position: absolute">X</span>
  X
</span>

CSS says that both X's should overlap, since the inner span has
left/top/right/bottom = auto.

When the outer span has non-zero padding or borders *and* the outer span is a
first child, the inner span will be misaligned. See attached file for a
test-case.

<span style="position: relative; padding: 1em;">
  <span style="position: absolute">X</span>
  X
</span>

Expected result:
All inner spans of X's overlap the outer spans (their styles/structure is
identical).

Actual result:
The first set of X's in each DIV is misaligned.

-- 
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