Bug 9998

Summary: <text> elements wrap when they shouldn't
Product: WebKit Reporter: Oliver Hunt <oliver>
Component: SVGAssignee: Oliver Hunt <oliver>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
URL: http://www.w3.org/Graphics/SVG/Test/20030813/htmlframe/full-text-align-03-b.html
Bug Depends on: 10380    
Bug Blocks: 6423    
Attachments:
Description Flags
fix 1
none
testcase demonstrating borked wrapping none

Oliver Hunt
Reported 2006-07-19 02:01:53 PDT
SVG spec says <text> elements should not wrap, yet currently they do
Attachments
fix 1 (383 bytes, patch)
2006-07-23 07:06 PDT, Oliver Hunt
no flags
testcase demonstrating borked wrapping (768 bytes, image/svg+xml)
2006-07-23 23:38 PDT, Oliver Hunt
no flags
Oliver Hunt
Comment 1 2006-07-23 07:06:44 PDT
Created attachment 9627 [details] fix 1 Okay, after traipsing through tonnes of code, i have modified svg.css :-/ This patch fixes the wrapping of text in svg elements but there are a number of problems:  * It's fixing a symptom -- the underlying problem is that tspans are not inheriting style from the containing <text> element  * It "breaks" many of the svg tests -- though these are corrections or strange minor changes in character positions (eg. 1px horizontal movement)  * It actually breaks a few tests -- filters-light-01-f for example -- though i cannot work out why or how Oh, the addition white-space: nowrap to <text> in svg.css is needed regardless -- so that's probably going to be in the final patch.
Oliver Hunt
Comment 2 2006-07-23 23:38:22 PDT
Created attachment 9646 [details] testcase demonstrating borked wrapping
Eric Seidel (no email)
Comment 3 2006-09-12 23:23:16 PDT
This is fixed in TOT.
Note You need to log in before you can comment on or make changes to this bug.