blob: ea40ac0567a917ea41e17d575ec4dc3125e177d1 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<style>
input:default { background: lime; }
button:default { background: lime; }
input { background: red; }
button { background: red; }
</style>
</head>
<body>
<p id="description"></p>
<form method="get">
<input name="victim" type="submit" value="Submit" />
</form>
<div id="console"></div>
<script>
description("This test performs a simple check for the :default CSS selector.");
v = document.getElementsByName("victim");
for (i = 0; i < v.length; i++)
shouldBe("document.defaultView.getComputedStyle(v[i], null).getPropertyValue('background-color')", "'rgb(0, 255, 0)'");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>