diff options
Diffstat (limited to 'testing/web-platform/tests/html/semantics/document-metadata/the-style-element/style_non_matching_media.html')
-rw-r--r-- | testing/web-platform/tests/html/semantics/document-metadata/the-style-element/style_non_matching_media.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/semantics/document-metadata/the-style-element/style_non_matching_media.html b/testing/web-platform/tests/html/semantics/document-metadata/the-style-element/style_non_matching_media.html new file mode 100644 index 0000000000..74d3554b13 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/document-metadata/the-style-element/style_non_matching_media.html @@ -0,0 +1,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> |