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

Unified Diff: third_party/WebKit/LayoutTests/fast/media/mq-aspect-ratio-overflow.html

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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/MediaQueryEvaluator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/media/mq-aspect-ratio-overflow.html
diff --git a/third_party/WebKit/LayoutTests/fast/media/mq-aspect-ratio-overflow.html b/third_party/WebKit/LayoutTests/fast/media/mq-aspect-ratio-overflow.html
new file mode 100644
index 0000000000000000000000000000000000000000..92b2e9831bd72fd4d4cb5753aa9858d355b0c6c8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/media/mq-aspect-ratio-overflow.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<style>
+ @media (max-aspect-ratio: 4294967295/1) { #t1 { color:green } }
+ @media (max-aspect-ratio: 4294967296/1) { #t2 { color:green } }
+</style>
+<div id="t1">This text should be green.</div>
+<div id="t2">This text should be green.</div>
+<script>
+ test(() => {
+ assert_equals(getComputedStyle(t1).color, "rgb(0, 128, 0)", "#t1 should be green.");
+ }, "Aspect ratio with numerator = 2^32-1.");
+ test(() => {
+ assert_equals(getComputedStyle(t2).color, "rgb(0, 128, 0)", "#t2 should be green.");
+ }, "Aspect ratio with numerator = 2^32.");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/MediaQueryEvaluator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698