summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/painting/reftests/non-scaling-stroke-001.html
blob: a9870ac8bb22094ecb4664228d185fe803758365 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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>