OLD | NEW |
1 CONSOLE WARNING: 'ShadowRoot.applyAuthorStyles' is deprecated. | |
2 Test whether scoped styles are applied in the cascade order or not. | 1 Test whether scoped styles are applied in the cascade order or not. |
3 If this test passes, rules which are declared in descendant scoping element are
applied to a target element. | 2 If this test passes, rules which are declared in descendant scoping element are
applied to a target element. |
4 c.f. https://bugs.webkit.org/show_bug.cgi?id=103239 | 3 c.f. https://bugs.webkit.org/show_bug.cgi?id=103239 |
5 Only document.style is applied to the target. | 4 Only document.style is applied to the target. |
6 PASS window.getComputedStyle(target).color is "rgb(255, 0, 0)" | 5 PASS window.getComputedStyle(target).color is "rgb(255, 0, 0)" |
7 A new scoped style is inserted into the grandparent node of the target. A class
rule in the inserted scoped style wins an id rule in document.style. | 6 A new scoped style is inserted into the grandparent node of the target. A class
rule in the inserted scoped style wins an id rule in document.style. |
8 PASS window.getComputedStyle(target).color is "rgb(255, 255, 0)" | 7 PASS window.getComputedStyle(target).color is "rgb(255, 255, 0)" |
9 A new scoped style is inserted into the parent node of the target. A tag rule in
the inserted scoped style wins an id rule and a class rule in existing styles. | 8 A new scoped style is inserted into the parent node of the target. A tag rule in
the inserted scoped style wins an id rule and a class rule in existing styles. |
10 PASS window.getComputedStyle(target).color is "rgb(0, 0, 255)" | 9 PASS window.getComputedStyle(target).color is "rgb(0, 0, 255)" |
11 Append a new style element to the shadow root. The style's scoping element is th
e shadow root. Rules in the style should override other rules in ascendant (scop
ed) styles. | |
12 PASS window.getComputedStyle(targetInShadow).color is "rgb(0, 255, 0)" | |
13 PASS successfullyParsed is true | 10 PASS successfullyParsed is true |
14 | 11 |
15 TEST COMPLETE | 12 TEST COMPLETE |
16 | 13 |
OLD | NEW |