Bug 264184 - REGRESSION(264666@main): Layout of the <tspan> elements inside a <textPath> is incorrect
Summary: REGRESSION(264666@main): Layout of the <tspan> elements inside a <textPath> i...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nikolas Zimmermann
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-11-03 16:12 PDT by Said Abou-Hallawa
Modified: 2023-12-13 11:41 PST (History)
5 users (show)

See Also:


Attachments
test case (778 bytes, text/html)
2023-11-03 16:12 PDT, Said Abou-Hallawa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2023-11-03 16:12:41 PDT
Created attachment 468478 [details]
test case

Open the attached test case.

Result: The layout of the text inside the circle is incorrect.

This affects rendering of the MDN home page: https://developer.mozilla.org/en-US/. This is a regression of 264666@main which was the fix of bug 257160.
Comment 1 Said Abou-Hallawa 2023-11-03 16:13:16 PDT
rdar://117911214
Comment 2 Nikolas Zimmermann 2023-11-03 16:29:40 PDT
Thanks Said dir the reduction. I can have a look early next week…
Comment 3 Nikolas Zimmermann 2023-12-04 02:43:35 PST
Working on it.
Comment 4 Nikolas Zimmermann 2023-12-04 04:44:12 PST
Pull request: https://github.com/WebKit/WebKit/pull/21271
Comment 5 Nikolas Zimmermann 2023-12-04 04:46:00 PST
Got a fix, and incorporated Saids testcase as new test in the PR. However I failed to make a proper reftest for this, as HTML/CSS is missing the primitives to layout text on path, and it's hard to simulate it in a cross-platform way, unless resorting to e.g. Ahem font etc. -- I didn't have the time to investigate, and also don't want to hold back the regression fix any longer.
Comment 6 EWS 2023-12-13 11:41:26 PST
Committed 271996@main (79238bc8e2d6): <https://commits.webkit.org/271996@main>

Reviewed commits have been landed. Closing PR #21271 and removing active labels.