Bug 245248

Summary: text-transform causes incorrect text placement in svg
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: SVGAssignee: Ahmad Saleem <ahmad.saleem792>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: sabouhallawa, zimmermann
Priority: P2    
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2022-09-15 15:09:34 PDT
Hi Team,

This would be another Blink Merge Candidate bug. I was not able to find any similar bug so I created a new.

The issue stems from where "whitespace" causes text within SVG to misplace and not render properly while using text-transform.

This was fixed by Blink in this commit - https://src.chromium.org/viewvc/blink?view=revision&revision=184655

and in Webkit, we have to modify following:

https://github.com/WebKit/WebKit/blob/e3e969227c9e4c59148f4e78a81fb9cbc6e2a3a3/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp#L100

and add few bits in above and also in here:

https://github.com/WebKit/WebKit/blob/0d7afc5a45c140c44497a81e92416f01306be877/Source/WebCore/rendering/svg/RenderSVGInlineText.h#L50

I am going to take it up and fix it and see how it goes.

Thanks!
Comment 1 Ahmad Saleem 2022-09-15 16:07:21 PDT

*** This bug has been marked as a duplicate of bug 171664 ***