OLD | NEW |
1 Test whether :host matches a shadow host correctly. | 1 Test whether :host matches a shadow host correctly. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 :host out of shadow tree should not match any shadow hosts. | 6 :host out of shadow tree should not match any shadow hosts. |
7 PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)" | 7 PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)" |
8 :host with * should not match any shadow hosts. | 8 :host with * should not match any shadow hosts. |
9 PASS backgroundColorOf('host') is "rgb(0, 128, 0)" | 9 PASS backgroundColorOf('host') is "rgb(0, 128, 0)" |
10 :host with tag selector should not match any shadow hosts. | 10 :host with tag selector should not match any shadow hosts. |
11 PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)" | 11 PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)" |
12 :host with class selector should not match any shadow hosts. | 12 :host with class selector should not match any shadow hosts. |
13 PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)" | 13 PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)" |
14 :host with id selector should not match any shadow hosts. | 14 :host with id selector should not match any shadow hosts. |
15 PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)" | 15 PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)" |
16 :host with attribute selector should not match any shadow hosts. | 16 :host with attribute selector should not match any shadow hosts. |
17 PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)" | 17 PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)" |
18 :host in a shadow tree should match its shadow host. | 18 :host in a shadow tree should match its shadow host. |
19 PASS backgroundColorOf('host') is "rgb(0, 128, 0)" | 19 PASS backgroundColorOf('host') is "rgb(0, 128, 0)" |
| 20 :host with :ancestor in a shadow tree should match its shadow host. |
| 21 PASS backgroundColorOf('host') is "rgb(0, 128, 0)" |
20 :host takes simple selectors and matches when one of the simple selectors matche
s. | 22 :host takes simple selectors and matches when one of the simple selectors matche
s. |
21 PASS backgroundColorOf('host') is "rgb(0, 128, 0)" | 23 PASS backgroundColorOf('host') is "rgb(0, 128, 0)" |
22 :host matches a shadow host in just a nested shadow tree, not all enclosing shad
ow trees. | 24 :host matches a shadow host in just a nested shadow tree, not all enclosing shad
ow trees. |
23 PASS backgroundColorOf('host1') is "rgba(0, 0, 0, 0)" | 25 PASS backgroundColorOf('host1') is "rgba(0, 0, 0, 0)" |
24 PASS backgroundColorOf('host1/host2') is "rgb(0, 128, 0)" | 26 PASS backgroundColorOf('host1/host2') is "rgb(0, 128, 0)" |
25 :host matches based on a composed tree. | 27 :host is updated when its matched host changes className or id. |
26 PASS backgroundColorOf('host/target') is "rgb(0, 128, 0)" | |
27 :host matches based on a composed tree when having multiple shadow roots. | |
28 PASS backgroundColorOf('host/targetA') is "rgba(0, 0, 0, 0)" | |
29 PASS backgroundColorOf('host/targetB') is "rgb(0, 128, 0)" | |
30 PASS backgroundColorOf('host/targetC') is "rgb(0, 128, 0)" | |
31 :host is updated when its matched ancestor changes className or id. | |
32 PASS backgroundColorOf('host') is "rgb(0, 128, 0)" | 28 PASS backgroundColorOf('host') is "rgb(0, 128, 0)" |
33 PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)" | 29 PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)" |
34 PASS backgroundColorOf('host') is "rgb(0, 128, 0)" | 30 PASS backgroundColorOf('host') is "rgb(0, 128, 0)" |
35 PASS backgroundColorOf('host') is "rgba(0, 0, 0, 0)" | 31 PASS backgroundColorOf('host2') is "rgba(0, 0, 0, 0)" |
36 Compare :host with :host. | 32 Compare :host with :host. |
37 PASS backgroundColorOf('host') is "rgb(0, 128, 0)" | 33 PASS backgroundColorOf('host') is "rgb(0, 128, 0)" |
38 PASS backgroundColorOf('host') is "rgb(255, 0, 0)" | 34 PASS backgroundColorOf('host') is "rgb(255, 0, 0)" |
39 PASS backgroundColorOf('host/target') is "rgb(0, 128, 0)" | 35 PASS backgroundColorOf('host/target') is "rgb(0, 128, 0)" |
40 PASS backgroundColorOf('host/target') is "rgb(0, 128, 0)" | 36 PASS backgroundColorOf('host/target') is "rgb(0, 128, 0)" |
41 PASS backgroundColorOf('host/target') is "rgb(0, 128, 0)" | 37 PASS backgroundColorOf('host/target') is "rgb(0, 128, 0)" |
42 PASS successfullyParsed is true | 38 PASS successfullyParsed is true |
43 | 39 |
44 TEST COMPLETE | 40 TEST COMPLETE |
45 | 41 |
OLD | NEW |