OLD | NEW |
| (Empty) |
1 CONSOLE WARNING: 'ShadowRoot.applyAuthorStyles' is deprecated. | |
2 Test that rules in an inner scoped stylesheet don't override !important rules de
clared in an outer scoped stylesheet. | |
3 | |
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
5 | |
6 | |
7 Case1: The target element has any matched important rule declared in an outer sc
oped stylesheet, and the element also has any matched normal rule declared in an
inner scoped stylesheet. | |
8 PASS getComputedStyle(target1).borderColor is "rgb(0, 128, 0)" | |
9 Case2: The target element has any matched important rule declared in an outer sc
oped stylesheet, and the element also has a matched normal ID rule declared in a
n inner scoped stylesheet. | |
10 PASS getComputedStyle(target2).borderColor is "rgb(0, 128, 0)" | |
11 Case3: The target element has any matched important rule declared in an outer sc
oped stylesheet, and the element also has matched normal rules declared in an in
ner scoped stylesheet and in a STYLE attribute. | |
12 PASS getComputedStyle(target3).borderColor is "rgb(0, 128, 0)" | |
13 Case4: The target element has matched important rules. One is declared in an out
er scoped stylesheet and the other is declared in an inner scoped stylesheet. | |
14 PASS getComputedStyle(target4).borderColor is "rgb(0, 0, 255)" | |
15 Case5: The target element has any matched important rule declared in an author s
tylesheet, and the element also has matched normal rules declared in an inner sc
oped stylesheet. | |
16 PASS getComputedStyle(target5).borderColor is "rgb(0, 255, 0)" | |
17 Case6: The target element has matched important rules. One is declared in an aut
hor stylesheet (not scoped) and the other is declared in a scoped stylesheet. | |
18 PASS getComputedStyle(target6).borderColor is "rgb(0, 0, 255)" | |
19 Case7: The target element has any matched important rule declared in an outer sc
oped stylesheet. The element is in a shadow dom tree whose shadow root has apply
-author-styles true. The shadow dom tree has any other normal rules which match
the element. | |
20 PASS getComputedStyle(target7).borderColor is "rgb(0, 128, 0)" | |
21 Case8: The target element in a shadow dom tree has any matched important rule de
clared in an outer scoped stylesheet in an enclosing shadow dom tree. The target
element's shadow root has apply-author-styles true. | |
22 PASS getComputedStyle(target8).borderColor is "rgb(0, 128, 0)" | |
23 Case8': The target element is in a shadow dom tree. An enclosing shadow dom tree
has some stylesheet which declares an important rule. The target element's shad
ow root has apply-author-styles false. | |
24 PASS getComputedStyle(target8).borderColor is "rgb(0, 0, 255)" | |
25 PASS successfullyParsed is true | |
26 | |
27 TEST COMPLETE | |
28 | |
OLD | NEW |