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

Unified Diff: LayoutTests/fast/media/media-query-and.html

Issue 15878013: Tokenize "and(" as a FUNCTION in media queries. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 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-and.html
diff --git a/LayoutTests/fast/media/media-query-and.html b/LayoutTests/fast/media/media-query-and.html
new file mode 100644
index 0000000000000000000000000000000000000000..07a1706b2fd4b3526ed62b62fef1e874e496c5c8
--- /dev/null
+++ b/LayoutTests/fast/media/media-query-and.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>CSS Media Queries: tokenizing "and"</title>
+ <link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/#syntax" />
+ <style type="text/css">
+ div {
+ width: 150px;
+ height: 50px;
+ background-color: red;
+ }
+ #t1 { background-color: green; }
+ @media all and(color) { #t1 { background-color: red; } }
+ @media all and/**/(color) { #t2 { background-color: green; } }
+ @media all and (color) { #t3 { background-color: green; } }
+ </style>
+</head>
+<body>
+ <p>You should see a green square below.</p>
+ <div id="t1"></div>
+ <div id="t2"></div>
+ <div id="t3"></div>
+</body>
+</html>
« no previous file with comments | « LayoutTests/fast/css/media-rule-no-whitespace.html ('k') | LayoutTests/fast/media/media-query-and-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698