OLD | NEW |
(Empty) | |
| 1 Test that rules in an inner scoped stylesheet don't override !important rules de
clared in an outer scoped stylesheet. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 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. |
| 7 PASS getComputedStyle(target1).borderColor is "rgb(0, 128, 0)" |
| 8 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. |
| 9 PASS getComputedStyle(target2).borderColor is "rgb(0, 128, 0)" |
| 10 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. |
| 11 PASS getComputedStyle(target3).borderColor is "rgb(0, 128, 0)" |
| 12 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. |
| 13 PASS getComputedStyle(target4).borderColor is "rgb(0, 0, 255)" |
| 14 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. |
| 15 PASS getComputedStyle(target5).borderColor is "rgb(0, 255, 0)" |
| 16 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. |
| 17 PASS getComputedStyle(target6).borderColor is "rgb(0, 0, 255)" |
| 18 PASS successfullyParsed is true |
| 19 |
| 20 TEST COMPLETE |
| 21 |
OLD | NEW |