summaryrefslogtreecommitdiffstats
path: root/testfiles/cli_tests/testcases/square_mm_viewbox.svg
blob: 394b205bb31cdbe66e058d43509e3fa5d5233f1d (plain)
1
2
3
4
5
6
7
8
9
10
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" width="200mm" height="200mm" viewBox="0 0 200 200">
  <!-- Consider that usually 1 user unit = 1 px = 1/96 inch, but viewBox scale the the drawing here, 
  so that 1 (unitless) user unit is equivalent to 1 mm after scaling. 
  The first square (square-mm) doesn't actually have a size of 100 mm.
  The second and third square together has the size of 100 mm × 100 mm.
  <rect x="0" y="0" width="100mm" height="100mm" fill="yellow" id="square-mm" />-->
  <rect x="50"  y="50" width="50" height="100" fill="blue" id="square-blue" />
  <rect x="100" y="50" width="50" height="100" fill="red"  id="square-red" />
</svg>