blob: bd8ab70f7551e2b307dec86f8bea0c4f160fa6fc (
plain)
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
|
<!DOCTYPE html>
<html>
<head>
<title>HTML 5 Foreign Content SVG in HTML </title>
<meta description="Test to verify SVG elements are styled using SCRIPT and STYLE element" />
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<style>
svg
{
display: block;
fill: black;
}
</style>
<script>
function ChangeColor()
{
document.getElementById("rect1").style.fill = "green";
}
</script>
</head>
<body onload="ChangeColor()">
<div class="testdata">
<p id="instructions">Test passes if a green square appears above a black square. </p>
</div>
<svg width="200px" height="200px">
<rect id="rect1" x="0" y="0" width="100px" height="100px" />
<rect id="rect2" x="0" y="150" width="100px" height="100px" />
</svg>
</body>
</html>
|