Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / svg / custom / pattern-userSpaceOnUse-userToBaseTransform.xhtml
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" >
3 <head>
4     <title>userSpaceOnUse SVG Patterns</title>
5 </head>
6 <body>
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;">
9     <g>
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)"/>
14     </g>
15 </svg>
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)"/>
21         
22     </g>
23     <g transform="translate(100, 0)">
24         <rect width="100" height="50" fill="red"/>
25         <rect width="100" height="100" fill="url(#pattern)"/>
26     </g>
27     <defs>
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"/>
31         </pattern>
32     </defs>
33 </svg>
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>
36     <g>
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)"/>
39     </g>
40 </svg>
41 </body>
42 </html>