blob: 3e438d7fd3e536ceb0b5f51c3d4d01cae20d3041 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description("This tests indexing outside the range of the computed style object.");
var element = document.createElement('div');
element.style.color = 'rgb(120, 120, 120)';
document.documentElement.appendChild(element);
var computedStyle = window.getComputedStyle(element, null);
shouldBeEqualToString('typeof computedStyle.length', 'number');
shouldBeEqualToString('computedStyle.item(computedStyle.length)', '');
shouldBeUndefined('computedStyle[computedStyle.length]');
shouldBeUndefined('computedStyle[-1]')
document.documentElement.removeChild(element);
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>