Skip to content

Commit

Permalink
Ignore transform-origin and such shenanigans in SVGGeometryElement::L…
Browse files Browse the repository at this point in the history
…ocalTransform.

We don't want the offsetted matrix, just the actual transform matrix
specified on the element.

Differential Revision: https://phabricator.services.mozilla.com/D224217

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1921662
gecko-commit: dd364824053b80e505688cfb4bf8a2f17b70019a
gecko-reviewers: longsonr
  • Loading branch information
emilio authored and moz-wptsync-bot committed Oct 5, 2024
1 parent f368433 commit e662078
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions svg/text/reftests/text-path-transformed-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!doctype html>
<svg width="200" height="200" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path id="guide" d="M 0 100 H 200" stroke="black" stroke-width="2" />
<text x="0" y="0">
<textPath xlink:href="#guide" font-size="40">XXXX</textPath>
</text>
</svg>
12 changes: 12 additions & 0 deletions svg/text/reftests/text-path-transformed.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<meta charset="utf-8">
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:[email protected]">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1921662">
<link rel="match" href="text-path-transformed-ref.html">
<svg width="200" height="200" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path id="guide" d="M 0 50 H 200" stroke="black" transform="scale(2)" />
<text x="0" y="0">
<textPath xlink:href="#guide" font-size="40">XXXX</textPath>
</text>
</svg>

0 comments on commit e662078

Please sign in to comment.