Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / viewBox-empty.html
blob5fe0bccc6de910e6c2f3be1677a635b19de3a5bd
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <!-- Test for https://bugs.webkit.org/show_bug.cgi?id=112623.
5 Empty-viewBox elements should not be rendered. -->
7 <svg width="600px" height="100px" xmlns="http://www.w3.org/2000/svg">
8 <defs>
9 <pattern id="pattern" viewBox="10 10 0 0" width="100" height="100">
10 <rect width="100" height="100" fill="red"/>
11 </pattern>
13 <marker id="marker" viewBox="0 0 0 0" markerWidth="100" markerHeight="100">
14 <rect width="100" height="100" fill="red"/>
15 </marker>
16 </defs>
18 <rect width="100" height="100" fill="green"/>
19 <svg width="100px" height="100px" viewBox="0 0 0 0">
20 <rect width="100" height="100" fill="red"/>
21 </svg>
23 <rect x="120" width="100" height="100" fill="green"/>
24 <rect x="120" width="100" height="100" fill="url(#pattern)"/>
26 <rect x="240" width="100" height="100" fill="green"/>
27 <line x1="240" x2="340" marker-start="url(#marker)"/>
28 </svg>
30 <div style="width: 100px; height: 100px; background-color: green;">
31 <svg width="100px" height="100px" viewBox="0 0 0 0" xmlns="http://www.w3.org/2000/svg">
32 <rect width="100%" height="100%" fill="red"/>
33 </svg>
34 </div>
35 </body>
36 </html>