[Webkit-unassigned] [Bug 152980] New: absolute div with width 100% in inline element results in the inner div having the wrong width

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 11 11:27:02 PST 2016


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

            Bug ID: 152980
           Summary: absolute div with width 100% in inline element results
                    in the inner div having the wrong width
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: lucas at wiener.se

See the following example: http://codepen.io/anon/pen/vLZZpm

<span style="position:relative;">
  1111
  <div style="position:absolute; width:100%;"></div>
</span>

The offset width of the span element is 31px and the offset width of the div element is 30px. Should not the offset of the two elements be the same? In Chrome and FireFox they are.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160111/5f487dff/attachment.html>


More information about the webkit-unassigned mailing list