1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd" [
4 <rect x='.5' y='.5' width='29' height='39' fill='black' stroke='red'/>
5 <g transform='translate(0, 5)'>
6 <circle cx='15' cy='15' r='10' fill='yellow'/>
7 <circle cx='12' cy='12' r='1.5' fill='black'/>
8 <circle cx='17' cy='12' r='1.5' fill='black'/>
9 <path d='M 10 19 L 15 23 20 19' stroke='black' stroke-width='2'/>
12 <!ENTITY Viewport2
"<rect x='.5' y='.5' width='29' height='59'
13 fill='none' stroke='blue'/>">
15 <svg version=
"1.1" baseProfile=
"basic" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" id=
"svg-root" width=
"100%" height=
"100%" viewBox=
"0 0 480 360">
16 <g id=
"test-body-content" transform=
"translate(0, 0)">
18 <text x=
"0" y=
"30">All svgs below should look the same, since all have preserveAspectRatio with syntax errors and default should be chosen.
</text>
19 <g transform=
"translate(0, 50)">
20 <svg version=
"1.1" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" preserveAspectRatio=
"defer" viewBox=
"0 0 30 40" width=
"30" height=
"60">&Smile;</svg>
22 <g transform=
"translate(50, 50)">
23 <svg version=
"1.1" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" preserveAspectRatio=
"defer meet" viewBox=
"0 0 30 40" width=
"30" height=
"60">&Smile;</svg>
25 <g transform=
"translate(100, 50)">
26 <svg version=
"1.1" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" preserveAspectRatio=
"defer xMidYMid meet a" viewBox=
"0 0 30 40" width=
"30" height=
"60">&Smile;</svg>
28 <g transform=
"translate(150, 50)">
29 <svg version=
"1.1" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" preserveAspectRatio=
"defer 1 xMidYMid meet" viewBox=
"0 0 30 40" width=
"30" height=
"60">&Smile;</svg>
31 <g transform=
"translate(200, 50)">
32 <svg version=
"1.1" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" preserveAspectRatio=
"defer , xMidYMid meet" viewBox=
"0 0 30 40" width=
"30" height=
"60">&Smile;</svg>
34 <g transform=
"translate(250, 50)">
35 <svg version=
"1.1" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" preserveAspectRatio=
"" viewBox=
"0 0 30 40" width=
"30" height=
"60">&Smile;</svg>
37 <text x=
"0" y=
"190">All svgs below should look the same, all have valid preserveAspectRatio.
</text>
38 <g transform=
"translate(0, 200)">
39 <svg version=
"1.1" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" preserveAspectRatio=
"defer xMidYMid meet" viewBox=
"0 0 30 40" width=
"30" height=
"60">&Smile;</svg>
41 <g transform=
"translate(50, 200)">
42 <svg version=
"1.1" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" preserveAspectRatio=
"xMidYMid meet" viewBox=
"0 0 30 40" width=
"30" height=
"60">&Smile;</svg>
44 <g transform=
"translate(100, 200)">
45 <svg version=
"1.1" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" preserveAspectRatio=
" xMidYMid meet" viewBox=
"0 0 30 40" width=
"30" height=
"60">&Smile;</svg>
47 <g transform=
"translate(150, 200)">
48 <svg version=
"1.1" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" preserveAspectRatio=
"xMidYMid meet " viewBox=
"0 0 30 40" width=
"30" height=
"60">&Smile;</svg>