-
Notifications
You must be signed in to change notification settings - Fork 8
/
test-page.html
49 lines (46 loc) · 1.67 KB
/
test-page.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
<title>SVG Boilerplate Test Page</title>
<script src="js/modernizr-1.5.min.js"></script>
</head>
<body>
<!--
XXX TODO
-->
<h1>SVG Boilerplate Test Page</h1>
<section>
<h2>Debug</h2>
<p>
The mode being used is: <strong id='mode'>UNKNOWN</strong> (<em id='xh'></em>).
</p>
<pre id='dump'></pre>
</section>
<section>
<h2>Inline</h2>
<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'
width='200' height='200' viewPort='0 0 200 200'>
<rect x='50' y='50' width='100' height='100' fill='red'>
<set attributeName='fill' attributeType='CSS' to='green'></set>
<animateTransform attributeName='transform' attributeType='XML'
type='rotate' from='0 100,100' to='360 100,100' dur='3s' repeatCount='indefinite'></animateTransform>
</rect>
</svg>
</section>
<section>
<h2>Embedded</h2>
<!--[if lt IE 9]>
<object src='test.svg' classid='image/svg+xml' width='200' height='200'></object>
<![endif]-->
<!--[if gte IE 9]>-->
<object data='test.svg' type='image/svg+xml' width='200' height='200'></object>
<!--<![endif]-->
</section>
<script src='js/shimvg.js' data-debug='true'></script>
<script>
document.getElementById("mode").innerHTML = ShimSVGDebug.mode;
document.getElementById("xh").innerHTML = ShimSVGDebug.xhtml ? "xhtml" : "html";
</script>
</body>
</html>