Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/document-metadata/the-style-element/style_non_matching_media.html - WPT Dashboard Interop Dashboard
<!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>