mq-negative-range-001.html (1039B)
1 <!doctype html> 2 <title>Test: false in the negative range</title> 3 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> 4 <link rel="help" href="https://drafts.csswg.org/mediaqueries-4/#mq-syntax"> 5 <link rel="help" href="https://www.w3.org/TR/mediaqueries-4/#false-in-the-negative-range"> 6 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/1454"> 7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 8 <meta name="assert" content="features that are 'false in the negative range' should still parse with negative values"> 9 <style> 10 div { 11 width: 100px; 12 height: 100px; 13 background-color: red; 14 } 15 16 @media 17 (min-width: -100px) 18 and 19 (min-height: -100px) 20 and 21 (min-color: -10) 22 and 23 (min-color-index: -10) 24 and 25 (min-monochrome: -10) 26 and 27 (min-device-width: -100px) 28 and 29 (min-device-height: -100px) 30 { 31 div { background-color: green; } 32 } 33 </style> 34 35 <p>Test passes if there is a filled green square and <strong>no red</strong>. 36 37 <div></div>