Bug 126167 - element width isn't calculated properly for text-indent values in percentages
Summary: element width isn't calculated properly for text-indent values in percentages
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 525.x (Safari 3.2)
Hardware: All All
: P1 Normal
Assignee: Nobody
URL: http://jsfiddle.net/8UQmN/2/
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-23 11:10 PST by Yair Even Or
Modified: 2022-07-13 17:04 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yair Even Or 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?
Comment 1 Yair Even Or 2013-12-23 11:42:36 PST
apparently, this can be resolved using the strange `display: -webkit-box;`
Comment 2 Brent Fulgham 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.