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: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: bfulgham
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Lucas Wiener
Reported 2016-01-11 11:27:02 PST
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
Brent Fulgham
Comment 1 2022-07-14 15:18:49 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.
Note You need to log in before you can comment on or make changes to this bug.