mq-calc-006.html (708B)
1 <!DOCTYPE html> 2 <link rel="author" title="Xiaocheng Hu" href="xiaochengh@chromium.org"> 3 <link rel="help" href="http://www.w3.org/TR/css3-values/#calc-notation"> 4 <link rel="help" href="https://www.w3.org/TR/css3-mediaqueries/#units"> 5 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 6 <meta name="assert" content="The 'in' unit used in calc is not mistaken as 'px'."> 7 <style> 8 p { font-size: 16px; } 9 #target { 10 width: 100px; 11 height: 100px; 12 background-color: green; 13 } 14 @media (min-width: calc(100in)) { 15 /* Should not be selected */ 16 #target { background-color: red } 17 } 18 </style> 19 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 20 <div id=target></div>