WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
152980
absolute div with width 100% in inline element results in the inner div having the wrong width
https://bugs.webkit.org/show_bug.cgi?id=152980
Summary
absolute div with width 100% in inline element results in the inner div havin...
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug