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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/MediaQueryEvaluator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <style>
5 @media (max-aspect-ratio: 4294967295/1) { #t1 { color:green } }
6 @media (max-aspect-ratio: 4294967296/1) { #t2 { color:green } }
7 </style>
8 <div id="t1">This text should be green.</div>
9 <div id="t2">This text should be green.</div>
10 <script>
11 test(() => {
12 assert_equals(getComputedStyle(t1).color, "rgb(0, 128, 0)", "#t1 should be g reen.");
13 }, "Aspect ratio with numerator = 2^32-1.");
14 test(() => {
15 assert_equals(getComputedStyle(t2).color, "rgb(0, 128, 0)", "#t2 should be g reen.");
16 }, "Aspect ratio with numerator = 2^32.");
17 </script>
OLDNEW
« 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