| OLD | NEW | 
| (Empty) |  | 
 |   1 <!DOCTYPE html> | 
 |   2 <!--  | 
 |   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 | 
 |   5 policies and contribution forms [3]. | 
 |   6  | 
 |   7 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license | 
 |   8 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license | 
 |   9 [3] http://www.w3.org/2004/10/27-testcases | 
 |  10  --> | 
 |  11 <html> | 
 |  12 <head> | 
 |  13 <title>Shadow DOM Test: A_06_00_11</title> | 
 |  14 <link rel="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru"> | 
 |  15 <link rel="help" href="http://www.w3.org/TR/2013/WD-shadow-dom-20130514/#styles"
    > | 
 |  16 <meta name="assert" content="Styles:the styles of the shadow insertion point nod
    e are inherited by the child nodes of the shadow root of the shadow tree, distri
    buted to this shadow insertion point"> | 
 |  17 <script src="../../../../resources/testharness.js"></script> | 
 |  18 <script src="../../../../resources/testharnessreport.js"></script> | 
 |  19 <script src="../testcommon.js"></script> | 
 |  20 <link rel="stylesheet" href="../../../../resources/testharness.css"> | 
 |  21 </head> | 
 |  22 <body> | 
 |  23 <div id="log"></div> | 
 |  24 <script> | 
 |  25 // Test fails. See https://bugs.webkit.org/show_bug.cgi?id=103625 | 
 |  26 test(unit(function (ctx) { | 
 |  27         var d = newRenderedHTMLDocument(ctx); | 
 |  28  | 
 |  29     var host = d.createElement('div'); | 
 |  30     d.body.appendChild(host); | 
 |  31  | 
 |  32         //Old tree | 
 |  33         var s1 = host.createShadowRoot(); | 
 |  34  | 
 |  35         var div1 = d.createElement('div'); | 
 |  36         div1.setAttribute('style', 'font-size: 10px'); | 
 |  37         div1.innerHTML = '<span id="shd1">This is an old shadow tree</span>'; | 
 |  38         s1.appendChild(div1); | 
 |  39  | 
 |  40         var height1 = s1.querySelector('#shd1').offsetHeight; | 
 |  41  | 
 |  42         assert_true(height1 > 0, 'Element height should be greater than zero'); | 
 |  43  | 
 |  44         //younger tree | 
 |  45         var s2 = host.createShadowRoot(); | 
 |  46         var div2 = d.createElement('div'); | 
 |  47         div2.innerHTML =  '<shadow style="font-size:20px"></shadow>'; | 
 |  48         s2.appendChild(div2); | 
 |  49  | 
 |  50         assert_true(s1.querySelector('#shd1').offsetHeight > height1, | 
 |  51                 'Shadow insertion point style must be aplied to the child nodes 
    of ' + | 
 |  52         'the shadow host that are assigned to this insertion point'); | 
 |  53 }), 'A_06_00_11_T01'); | 
 |  54 </script> | 
 |  55 </body> | 
 |  56 </html> | 
| OLD | NEW |