OLD | NEW |
---|---|
(Empty) | |
1 <!doctype html> | |
2 <title>SVGStyleElement tests</title> | |
3 <script src=../../resources/testharness.js></script> | |
4 <script src=../../resources/testharnessreport.js></script> | |
5 <div id="testcontainer"> | |
6 <svg width="1" height="1" visibility="hidden"> | |
7 <defs><style>.test { fill: green; }</style>/defs> | |
pdr.
2014/08/07 21:47:06
Syntax error /defs>
| |
8 </svg> | |
9 </div> | |
10 <div id=log></div> | |
11 <script> | |
12 var svg = document.querySelector("svg"), | |
13 style = document.querySelector("style"); | |
14 | |
15 test(function() { | |
16 assert_exists(style, "sheet", ""); | |
17 }, "SVGStyleElement implements LinkStyle"); | |
18 | |
19 test(function() { | |
20 assert_equals(document.styleSheets[0], style.sheet); | |
21 }, "document.styleSheets contains style.sheet"); | |
22 | |
23 test(function() { | |
24 assert_equals(document.styleSheets[0].ownerNode, style); | |
25 }, "sheet has correct ownerNode #1"); | |
26 | |
27 test(function() { | |
28 assert_equals(style.sheet.ownerNode, style); | |
29 }, "sheet has correct ownerNode #2"); | |
30 | |
31 </script> | |
OLD | NEW |