Bug 152980
| Summary: | absolute div with width 100% in inline element results in the inner div having the wrong width | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Lucas Wiener <lucas> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | bfulgham |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Lucas Wiener
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Brent Fulgham
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.