Index: third_party/WebKit/LayoutTests/fast/css/media-query-in-html-import.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css/media-query-in-html-import.html b/third_party/WebKit/LayoutTests/fast/css/media-query-in-html-import.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..699d77b7411846ee119bbc5d6b8ff3f31cd9548e |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/css/media-query-in-html-import.html |
@@ -0,0 +1,10 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<link rel="import" href="data:text/html,<style>@media (max-width: 0px){div{background:red}}</style>"> |
+<div></div> |
+<script> |
+ test(() => { |
+ assert_equals(getComputedStyle(document.querySelector("div")).backgroundColor, "rgba(0, 0, 0, 0)"); |
+ }, "(max-width: 0px) media query in import document should not evaluate to true."); |
+</script> |