OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Distributed under both the W3C Test Suite License [1] and the W3C | 3 Distributed under both the W3C Test Suite License [1] and the W3C |
4 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the | 4 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the |
5 policies and contribution forms [3]. | 5 policies and contribution forms [3]. |
6 | 6 |
7 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license | 7 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license |
8 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license | 8 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license |
9 [3] http://www.w3.org/2004/10/27-testcases | 9 [3] http://www.w3.org/2004/10/27-testcases |
10 --> | 10 --> |
(...skipping 18 matching lines...) Expand all Loading... |
29 var iframe = document.createElement('iframe'); | 29 var iframe = document.createElement('iframe'); |
30 iframe.src = '../../resources/bobs_page.html'; | 30 iframe.src = '../../resources/bobs_page.html'; |
31 document.body.appendChild(iframe); | 31 document.body.appendChild(iframe); |
32 | 32 |
33 iframe.onload = A_04_04_01_T1.step_func(function () { | 33 iframe.onload = A_04_04_01_T1.step_func(function () { |
34 try { | 34 try { |
35 var d = iframe.contentDocument; | 35 var d = iframe.contentDocument; |
36 | 36 |
37 //make shadow tree | 37 //make shadow tree |
38 var ul = d.querySelector('ul.stories'); | 38 var ul = d.querySelector('ul.stories'); |
39 var s = createSR(ul); | 39 var s = ul.createShadowRoot(); |
40 var subdiv1 = d.createElement('div'); | 40 var subdiv1 = d.createElement('div'); |
41 subdiv1.innerHTML = '<ul><content select="li"></content></ul>'; | 41 subdiv1.innerHTML = '<ul><content select="li"></content></ul>'; |
42 s.appendChild(subdiv1); | 42 s.appendChild(subdiv1); |
43 | 43 |
44 var shadowStyle = d.createElement('style'); | 44 var shadowStyle = d.createElement('style'); |
45 shadowStyle.innerHTML = '*::content .shadow { display:none; }'; | 45 shadowStyle.innerHTML = '*::content .shadow { display:none; }'; |
46 s.appendChild(shadowStyle); | 46 s.appendChild(shadowStyle); |
47 | 47 |
48 //The order of DOM elements should be the following: | 48 //The order of DOM elements should be the following: |
49 //li3, li6 - invisible. Other elements visible | 49 //li3, li6 - invisible. Other elements visible |
(...skipping 18 matching lines...) Expand all Loading... |
68 'Point 6: ::content pseudo-element should be a valid insertion poi
nt matching criteria, element should be visible'); | 68 'Point 6: ::content pseudo-element should be a valid insertion poi
nt matching criteria, element should be visible'); |
69 } finally { | 69 } finally { |
70 iframe.parentNode.removeChild(iframe); | 70 iframe.parentNode.removeChild(iframe); |
71 } | 71 } |
72 A_04_04_01_T1.done(); | 72 A_04_04_01_T1.done(); |
73 }); | 73 }); |
74 }); | 74 }); |
75 </script> | 75 </script> |
76 </body> | 76 </body> |
77 </html> | 77 </html> |
OLD | NEW |