1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" >
4 <title>userSpaceOnUse SVG Patterns</title>
7 There should be no red displayed on the screen, and the patterns should not change when the browser window is resized.<br/><br/>
8 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg" width="200" height="300" style="border: solid 1px black;">
10 <rect x="0" y="100" width="100" height="50" fill="red"/>
11 <rect x="100" y="0" width="100" height="50" fill="red"/>
12 <rect x="0" y="100" width="100" height="100" fill="url(#pattern)"/>
13 <rect x="100" y="0" width="100" height="100" fill="url(#pattern)"/>
16 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg" width="200" height="300" style="border: solid 1px black;">
17 <text x="5" y="280">+Transforms</text>
18 <g transform="translate(0, 100)">
19 <rect width="100" height="50" fill="red"/>
20 <rect width="100" height="100" fill="url(#pattern)"/>
23 <g transform="translate(100, 0)">
24 <rect width="100" height="50" fill="red"/>
25 <rect width="100" height="100" fill="url(#pattern)"/>
28 <pattern id="pattern" patternUnits="userSpaceOnUse" patternContentUnits="userSpaceOnUse" x="0" y="0" width="100" height="100">
29 <rect width="100" height="25" preserveAspectRatio="none" fill="green"/>
30 <rect width="100" y="25" height="25" preserveAspectRatio="none" fill="blue"/>
34 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg" width="200" height="300" style="border: solid 1px black; transform: translateZ(0px); -moz-transform: translateZ(0px); -o-transform: translateZ(0px);">
35 <text x="5" y="280">+Accelerated Compositing</text>
37 <rect x="0" y="100" width="100" height="100" fill="url(#pattern)"/>
38 <rect x="100" y="0" width="100" height="100" fill="url(#pattern)"/>