OLD | NEW |
1 Various tests for the hidden attribute. | 1 Various tests for the hidden attribute. |
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 | 6 |
7 Tests that hidden in markup works: | 7 Tests that hidden in markup works: |
8 | 8 |
9 | 9 |
10 Tests that dynamically adding/removing hidden works: | 10 Tests that dynamically adding/removing hidden works: |
11 PASS - this line should appear | 11 PASS - this line should appear |
12 | 12 |
13 Dynamic changing of hidden and effects on style: | 13 Dynamic changing of hidden and effects on style: |
14 PASS getComputedStyle(test3, false).display is "none" | 14 PASS getComputedStyle(test3, false).display is "none" |
15 test3.removeAttribute("hidden") | 15 test3.removeAttribute("hidden") |
16 PASS getComputedStyle(test3, false).display is "block" | 16 PASS getComputedStyle(test3, false).display is "block" |
17 PASS getComputedStyle(test4, false).display is "block" | 17 PASS getComputedStyle(test4, false).display is "block" |
18 test4.setAttribute("hidden", "") | 18 test4.setAttribute("hidden", "") |
19 PASS getComputedStyle(test4, false).display is "none" | 19 PASS getComputedStyle(test4, false).display is "none" |
20 | 20 |
| 21 |
| 22 |
| 23 |
21 PASS successfullyParsed is true | 24 PASS successfullyParsed is true |
22 | 25 |
23 TEST COMPLETE | 26 TEST COMPLETE |
24 | |
25 | |
26 | |
27 a | 27 a |
OLD | NEW |