blob: 1ac561367673574ef1f7c375468967f87d21a1d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<!DOCTYPE html>
<html>
<body>
<script src="../../fast/js/resources/js-test-pre.js"></script>
<script>
function setProperty(value) {
var div = document.createElement('div');
document.body.appendChild(div);
div.style.setProperty("isolation", value);
var computedValue = getComputedStyle(div).getPropertyValue("isolation");
document.body.removeChild(div);
return computedValue;
}
function test(value, expected) {
shouldBeEqualToString('setProperty("' + value + '")', expected);
}
test("auto", "auto");
test("isolate", "isolate");
test("", "auto");
test("rubbish", "auto");
</script>
<script src="../../fast/js/resources/js-test-post.js"></script>
</body>
</html>
|