blob: 9c94b06d015045a41988ad1e46a16460e86273ca [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd" [
<!ENTITY Smile "
<rect x='.5' y='.5' width='29' height='39' fill='black' stroke='red'/>
<g transform='translate(0, 5)'>
<circle cx='15' cy='15' r='10' fill='yellow'/>
<circle cx='12' cy='12' r='1.5' fill='black'/>
<circle cx='17' cy='12' r='1.5' fill='black'/>
<path d='M 10 19 L 15 23 20 19' stroke='black' stroke-width='2'/>
</g>
">
<!ENTITY Viewport2 "<rect x='.5' y='.5' width='29' height='59'
fill='none' stroke='blue'/>">
]>
<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">
<g id="test-body-content" transform="translate(0, 0)">
<g font-size="9">
<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>
<g id="meet-group-2" transform="translate(0, 50)">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="none" viewBox="0 0 30 40" width="30" height="60">&Smile;</svg>
</g>
<g transform="translate(50, 50)">
<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>
</g>
<g transform="translate(100, 50)">
<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>
</g>
<g transform="translate(150, 50)">
<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>
</g>
<g transform="translate(200, 50)">
<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>
</g>
<g transform="translate(250, 50)">
<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>
</g>
<g transform="translate(300, 50)">
<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>
</g>
<text x="0" y="190">All svgs below should look the same, all have valid preserveAspectRatio.</text>
<g transform="translate(0, 200)">
<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>
</g>
<g transform="translate(50, 200)">
<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>
</g>
<g transform="translate(100, 200)">
<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>
</g>
<g transform="translate(150, 200)">
<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>
</g>
</g>
</g>
</svg>