blob: 6132d776c8be8391d2f4dc43c74200c26a179243 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
var style = document.createElement('style');
style.appendChild(document.createTextNode("input { color: green; }"));
style.appendChild(document.createTextNode("input:checked { color: red; }"));
document.documentElement.firstChild.appendChild(style);
var input1 = document.createElement('input');
input1.type = 'radio';
document.body.appendChild(input1);
input1.checked = true;
input1.type = "text";
var view = document.defaultView;
shouldBeEqualToString("view.getComputedStyle(input1, '').getPropertyValue('color')", "rgb(0, 128, 0)");
shouldBeTrue("input1.checked");
// cleanup
document.body.removeChild(input1);
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>