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
126167
element width isn't calculated properly for text-indent values in percentages
https://bugs.webkit.org/show_bug.cgi?id=126167
Summary
element width isn't calculated properly for text-indent values in percentages
Yair Even Or
Reported
2013-12-23 11:10:18 PST
discussion in Stackoverflow:
http://stackoverflow.com/q/20749396/104380
-------------- In the demo above, there should be 2 .wrap boxes, one red and below it a blue one. That should be the correct behavior. The percentage of the text-indent are not relative to the .wrap containing element width (which is encapsulated by overflow:hidden) but it is relative to the clientWidth as it would seem. any suggestions?
Attachments
Add attachment
proposed patch, testcase, etc.
Yair Even Or
Comment 1
2013-12-23 11:42:36 PST
apparently, this can be resolved using the strange `display: -webkit-box;`
Brent Fulgham
Comment 2
2022-07-13 17:04:00 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