Bug 107416 - text-indent behaviour differs to Moz and Opera
Summary: text-indent behaviour differs to Moz and Opera
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-20 22:23 PST by Mike Lawther
Modified: 2022-07-13 13:51 PDT (History)
2 users (show)

See Also:


Attachments
test file (315 bytes, text/html)
2013-01-20 22:24 PST, Mike Lawther
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lawther 2013-01-20 22:23:50 PST
With the attached test file

---
<!DOCTYPE HTML>
<title>intrinsic width of text-indent on blocks</title>
<style>

body { font-size: 10px }
div { float: left; clear: left;
       margin: 0 0 1px 0; background: blue; color: white; height: 5px }
span { display: inline-block; width: 10px }

</style>

<div style="text-indent: 50%"><span></span></div>
----

WebKit's behaviour differs to Moz and Opera (Moz and Opera agree).

WebKit renders the div at 50% of the client width. Moz and Opera render it as 10px wide.

Note: this test was reduced from a Mozilla test case for CSS3 calc() (http://mxr.mozilla.org/mozilla-central/source/layout/reftests/w3c-css/submitted/values3/calc-text-indent-intrinsic-1.html?force=1). Credit to David Baron for the original test.
Comment 1 Mike Lawther 2013-01-20 22:24:20 PST
Created attachment 183713 [details]
test file
Comment 2 Brent Fulgham 2022-07-13 13:51:54 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.