OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <head><script src="../../js/resources/js-test-pre.js"></script></head> | 2 <head><script src="../../../resources/js-test.js"></script></head> |
3 | 3 |
4 <style> | 4 <style> |
5 #test-target { | 5 #test-target { |
6 var-stylesheet: pass; | 6 var-stylesheet: pass; |
7 } | 7 } |
8 </style> | 8 </style> |
9 | 9 |
10 <body> | 10 <body> |
11 <div style="var-inherited: pass"><div id="test-target" style="var-inline: pass">
</div></div> | 11 <div style="var-inherited: pass"><div id="test-target" style="var-inline: pass">
</div></div> |
12 </body> | 12 </body> |
(...skipping 28 matching lines...) Expand all Loading... |
41 computedBodyStyle.var.forEach(function(value, name, map) { | 41 computedBodyStyle.var.forEach(function(value, name, map) { |
42 emptyVarForEachIterations.push([value, name, map.toString()]); | 42 emptyVarForEachIterations.push([value, name, map.toString()]); |
43 }); | 43 }); |
44 shouldBe('emptyVarForEachIterations.length', '0'); | 44 shouldBe('emptyVarForEachIterations.length', '0'); |
45 | 45 |
46 shouldThrow('computedStyle.var.set("inline", "fail")', '"NoModificationAllowedEr
ror: Failed to set the \'inline\' property on a computed \'CSSStyleDeclaration\'
: computed styles are read-only."'); | 46 shouldThrow('computedStyle.var.set("inline", "fail")', '"NoModificationAllowedEr
ror: Failed to set the \'inline\' property on a computed \'CSSStyleDeclaration\'
: computed styles are read-only."'); |
47 shouldThrow('computedStyle.var.clear()', '"NoModificationAllowedError: Failed to
clear variables from a computed \'CSSStyleDeclaration\': computed styles are re
ad-only."'); | 47 shouldThrow('computedStyle.var.clear()', '"NoModificationAllowedError: Failed to
clear variables from a computed \'CSSStyleDeclaration\': computed styles are re
ad-only."'); |
48 shouldBe('computedStyle.var.delete("inline")', 'false'); | 48 shouldBe('computedStyle.var.delete("inline")', 'false'); |
49 shouldBeEqualToString('computedStyle.var.get("inline")', 'pass'); | 49 shouldBeEqualToString('computedStyle.var.get("inline")', 'pass'); |
50 </script> | 50 </script> |
OLD | NEW |