blob: 74d3554b1386ebbc3732210935dbd6a3d05306f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML Test: Non-matching media type should have stylesheet</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-style-element">
<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>
|