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

Unified Diff: LayoutTests/fast/media/media-query-only-not.html

Issue 23542021: Explicit space required around NOT/ONLY/AND in CSS MQ. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed unrelated whitespace fixes. Created 7 years, 2 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
Index: LayoutTests/fast/media/media-query-only-not.html
diff --git a/LayoutTests/fast/media/media-query-only-not.html b/LayoutTests/fast/media/media-query-only-not.html
new file mode 100644
index 0000000000000000000000000000000000000000..6ee7f9ae9566c9df9671b39116655af6d340cbd7
--- /dev/null
+++ b/LayoutTests/fast/media/media-query-only-not.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>CSS Media Queries: parsing with "only" and "not"</title>
+ <link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/#syntax" />
+ <link rel="help" href="http://www.w3.org/Style/2012/REC-mediaqueries-20120619-errata.html">
+ <style type="text/css">
+ div {
+ width: 100px;
+ height: 10px;
+ background-color: red;
+ }
+ #t1, #t4 { background-color: green; }
+ @media not/**/speech { #t1 { background-color: red; } }
+ @media not/**/ speech { #t2 { background-color: green; } }
+ @media not /**/speech { #t3 { background-color: green; } }
+ @media only/**/screen { #t4 { background-color: red; } }
+ @media only/**/ screen { #t5 { background-color: green; } }
+ @media only /**/screen { #t6 { background-color: green; } }
+ </style>
+</head>
+<body>
+ <p>You should see a green rectangle below.</p>
+ <div id="t1"></div>
+ <div id="t2"></div>
+ <div id="t3"></div>
+ <div id="t4"></div>
+ <div id="t5"></div>
+ <div id="t6"></div>
+</body>
+</html>
« no previous file with comments | « LayoutTests/fast/media/media-query-and-expected.html ('k') | LayoutTests/fast/media/media-query-only-not-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698