Bug 107416

Summary: text-indent behaviour differs to Moz and Opera
Product: WebKit Reporter: Mike Lawther <mikelawther>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: syoichi
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
test file none

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