Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: third_party/WebKit/LayoutTests/fast/css/media-query-in-html-import.html

Issue 2618803002: Use master StyleEngine to evaluate MQ in html imports. (Closed)
Patch Set: preferred sheet change broke a test Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698