Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML Test: Non-matching media type should have stylesheet</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style media="unknown">
body { color: green }
</style>
</head>
<body>
<script>
test(function() {
assert_equals(document.styleSheets.length, 1);
});
</script>
</body>
</html>