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

Unified Diff: third_party/WebKit/Source/core/css/MediaQueryEvaluatorTest.cpp

Issue 2836613002: Better overflow handling for aspect-ratio MQ. (Closed)
Patch Set: Created 3 years, 8 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: third_party/WebKit/Source/core/css/MediaQueryEvaluatorTest.cpp
diff --git a/third_party/WebKit/Source/core/css/MediaQueryEvaluatorTest.cpp b/third_party/WebKit/Source/core/css/MediaQueryEvaluatorTest.cpp
index db02731c2373aa94b9377c1902e123ba9572c740..97890b6fdc3e0658009380f797a2b19c7d15f55b 100644
--- a/third_party/WebKit/Source/core/css/MediaQueryEvaluatorTest.cpp
+++ b/third_party/WebKit/Source/core/css/MediaQueryEvaluatorTest.cpp
@@ -66,6 +66,8 @@ TestCase g_screen_test_cases[] = {
{"(display-mode: @junk browser)", 0},
{"(shape: rect)", 1},
{"(shape: round)", 0},
+ {"(max-device-aspect-ratio: 4294967295/1)", 1},
+ {"(min-device-aspect-ratio: 1/4294967296)", 1},
{0, 0} // Do not remove the terminator line.
};
@@ -91,6 +93,8 @@ TestCase g_viewport_test_cases[] = {
{"(width)", 1},
{"(width: whatisthis)", 0},
{"screen and (min-width: 400px) and (max-width: 700px)", 1},
+ {"(max-aspect-ratio: 4294967296/1)", 1},
+ {"(min-aspect-ratio: 1/4294967295)", 1},
{0, 0} // Do not remove the terminator line.
};
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQueryEvaluator.cpp ('k') | third_party/WebKit/Source/core/css/MediaQueryExp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698