Bug 107416

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

Mike Lawther
Reported 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.
Attachments
test file (315 bytes, text/html)
2013-01-20 22:24 PST, Mike Lawther
no flags
Mike Lawther
Comment 1 2013-01-20 22:24:20 PST
Created attachment 183713 [details] test file
Brent Fulgham
Comment 2 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.
Note You need to log in before you can comment on or make changes to this bug.