OLD | NEW |
1 This tests Javascript access to CSS variables via getComputedStyle. | 1 This tests Javascript access to CSS variables via getComputedStyle. |
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 PASS computedStyle.var.toString() is "[object CSSVariablesMap]" | 6 PASS computedStyle.var.toString() is "[object CSSVariablesMap]" |
7 PASS computedStyle.var === computedStyle.var is true | 7 PASS computedStyle.var === computedStyle.var is true |
8 PASS computedStyle.var.set("create", "test") threw exception NoModificationAllow
edError: Failed to set the 'create' property on a computed 'CSSStyleDeclaration'
: computed styles are read-only.. | 8 PASS computedStyle.var.set("create", "test") threw exception NoModificationAllow
edError: Failed to execute 'set' on 'CSSVariablesMap': These styles are computed
, and therefore the 'create' property is read-only.. |
9 PASS computedStyle.var.size is 3 | 9 PASS computedStyle.var.size is 3 |
10 PASS computedBodyStyle.var.size is 0 | 10 PASS computedBodyStyle.var.size is 0 |
11 PASS computedStyle.var.get("stylesheet") is "pass" | 11 PASS computedStyle.var.get("stylesheet") is "pass" |
12 PASS computedStyle.var.get("inherited") is "pass" | 12 PASS computedStyle.var.get("inherited") is "pass" |
13 PASS computedStyle.var.get("inline") is "pass" | 13 PASS computedStyle.var.get("inline") is "pass" |
14 PASS computedBodyStyle.var.get("non-existent") is "" | 14 PASS computedBodyStyle.var.get("non-existent") is "" |
15 PASS forEachIterations[0] is ["pass", "inherited", "[object CSSVariablesMap]"] | 15 PASS forEachIterations[0] is ["pass", "inherited", "[object CSSVariablesMap]"] |
16 PASS forEachIterations[1] is ["pass", "inline", "[object CSSVariablesMap]"] | 16 PASS forEachIterations[1] is ["pass", "inline", "[object CSSVariablesMap]"] |
17 PASS forEachIterations[2] is ["pass", "stylesheet", "[object CSSVariablesMap]"] | 17 PASS forEachIterations[2] is ["pass", "stylesheet", "[object CSSVariablesMap]"] |
18 PASS forEachIterations.length is 3 | 18 PASS forEachIterations.length is 3 |
19 PASS emptyVarForEachIterations.length is 0 | 19 PASS emptyVarForEachIterations.length is 0 |
20 PASS computedStyle.var.set("inline", "fail") threw exception NoModificationAllow
edError: Failed to set the 'inline' property on a computed 'CSSStyleDeclaration'
: computed styles are read-only.. | 20 PASS computedStyle.var.set("inline", "fail") threw exception NoModificationAllow
edError: Failed to execute 'set' on 'CSSVariablesMap': These styles are computed
, and therefore the 'inline' property is read-only.. |
21 PASS computedStyle.var.clear() threw exception NoModificationAllowedError: Faile
d to clear variables from a computed 'CSSStyleDeclaration': computed styles are
read-only.. | 21 PASS computedStyle.var.clear() threw exception NoModificationAllowedError: Faile
d to execute 'clear' on 'CSSVariablesMap': These styles are computed, and theref
ore variables may not be cleared.. |
22 PASS computedStyle.var.delete("inline") is false | 22 PASS computedStyle.var.delete("inline") is false |
23 PASS computedStyle.var.get("inline") is "pass" | 23 PASS computedStyle.var.get("inline") is "pass" |
24 PASS successfullyParsed is true | 24 PASS successfullyParsed is true |
25 | 25 |
26 TEST COMPLETE | 26 TEST COMPLETE |
27 | 27 |
OLD | NEW |