blob: cf6009d71c26ac24e68a8d4d852193250e5b946a [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Test case for bug 17082</title>
<style type="text/css">
</style>
</head>
<body>
<script type="text/javascript">
var rules = document.styleSheets[0].cssRules;
document.styleSheets[0].insertRule("img { height: 40px; }", 0);
if (document.styleSheets[0].cssRules.length && rules.length) document.write("<p>Test: PASSED</p>"); else document.write("<p style=\"background-color:red;\">Test: FAILED</p>");
</script>
</body>
</html>