OLD | NEW |
(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> |
OLD | NEW |