Skip to content

Commit abd9604

Browse files
committed
test(applyTransforms): add tests for asymmetric scaling of stroke width
1 parent a8e83df commit abd9604

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500">
22
<path transform="translate(250, 250) scale(1.5, 1.5) translate(-250, -250)" fill="#7ED321" stroke="#000" stroke-width="15" vector-effect="non-scaling-stroke" d="M125 125h250v250h-250v-250z"/>
3+
<path transform="translate(20, 20) scale(.5, 1.2)" fill="#7ED321" stroke="#000" stroke-width="15" vector-effect="non-scaling-stroke" d="M125 125h250v250h-250v-250z"/>
4+
<path fill="none" stroke="red" stroke-width="2" d="m10 10 10 10H10z" transform="matrix(1 0 0 2 10 0)" vector-effect="non-scaling-stroke"/>
5+
<path fill="none" stroke="green" stroke-width="2" d="m10 10 10 10H10z" transform="matrix(1 0 0 2 40 0)"/>
36
</svg>
47

58
@@@
69

710
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500">
811
<path fill="#7ED321" stroke="#000" stroke-width="15" vector-effect="non-scaling-stroke" d="M62.5 62.5h375v375h-375z"/>
12+
<path fill="#7ED321" stroke="#000" stroke-width="15" vector-effect="non-scaling-stroke" d="M82.5 170h125v300h-125z"/>
13+
<path fill="none" stroke="red" stroke-width="2" d="m20 20 10 20H20z" vector-effect="non-scaling-stroke"/>
14+
<path fill="none" stroke="green" stroke-width="2" d="m10 10 10 10H10z" transform="matrix(1 0 0 2 40 0)"/>
915
</svg>

0 commit comments

Comments
 (0)