Skip to content

Commit

Permalink
use the CTM for non-scaling-stroke rather than the screen CTM
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D211581

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1898409
gecko-commit: 8be119d3c4a47600746cefadd42695820dba8a12
gecko-reviewers: emilio
  • Loading branch information
longsonr authored and moz-wptsync-bot committed May 26, 2024
1 parent f2cdcb7 commit abcbb64
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions svg/painting/reftests/green-100x100.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions svg/painting/reftests/non-scaling-stroke-001.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<title>non-scaling-stroke with scaling</title>
<link rel="help" href="https://svgwg.org/svg2-draft/painting.html#PaintingVectorEffects" />
<link rel="match" href="green-100x100.svg" />
<body>
<style>
body {
border: none;
margin: 0;
width: 200px;
height: 200px;
transform: scale(2);
}
svg {
width: 100px;
height: 100px;
}
rect {
fill: red;
stroke: green;
stroke-width: 50px;
vector-effect: non-scaling-stroke;
}
</style>
<svg>
<rect width="75" height="75"/>
</svg>
</body>
</html>

0 comments on commit abcbb64

Please sign in to comment.