Bug 245248 - text-transform causes incorrect text placement in svg
Summary: text-transform causes incorrect text placement in svg
Status: RESOLVED DUPLICATE of bug 171664
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ahmad Saleem
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-15 15:09 PDT by Ahmad Saleem
Modified: 2022-09-15 16:07 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***