summaryrefslogtreecommitdiffstats
path: root/testfiles/cli_tests/testcases/square_mm_viewbox.svg
diff options
context:
space:
mode:
Diffstat (limited to 'testfiles/cli_tests/testcases/square_mm_viewbox.svg')
-rw-r--r--testfiles/cli_tests/testcases/square_mm_viewbox.svg10
1 files changed, 10 insertions, 0 deletions
diff --git a/testfiles/cli_tests/testcases/square_mm_viewbox.svg b/testfiles/cli_tests/testcases/square_mm_viewbox.svg
new file mode 100644
index 0000000..394b205
--- /dev/null
+++ b/testfiles/cli_tests/testcases/square_mm_viewbox.svg
@@ -0,0 +1,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>