-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use the CTM for non-scaling-stroke rather than the screen CTM
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
1 parent
f2cdcb7
commit abcbb64
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |