mq-negative-range-002.html (1081B)
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 (not (max-width: -100px)) 18 and 19 (not (max-height: -100px)) 20 and 21 (not (max-color: -10)) 22 and 23 (not (max-color-index: -10)) 24 and 25 (not (max-monochrome: -10)) 26 and 27 (not (max-device-width: -100px)) 28 and 29 (not (max-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>