q-unit-case-insensitivity-002.html (1206B)
1 <!DOCTYPE html> 2 3 <meta charset="UTF-8"> 4 5 <title>CSS Values and Units Test: case-insensitivity of Q unit (quarter-millimeter)</title> 6 7 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> 8 <link rel="help" href="https://www.w3.org/TR/css-values-3/#absolute-lengths"> 9 <link rel="help" href="https://www.w3.org/TR/CSS22/syndata.html#characters"> 10 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 11 12 <meta content="This test checks that 'Q' unit is case-insensitive." name="assert"> 13 14 <style> 15 div#test-overlapping-green 16 { 17 background-color: green; 18 height: 105.83333q; 19 width: 1px; 20 width: 105.83333Q; 21 } 22 23 /* 24 25 25.4mm == 96px 26 Therefore, 26.45833mm == 100px 27 So, 26.45833 * 4 (Q per mm) == 105.83333Q == 100px 28 29 */ 30 31 div#reference-overlapped-red 32 { 33 background-color: red; 34 bottom: 100px; 35 height: 100px; 36 position: relative; 37 width: 100px; 38 z-index: -1; 39 } 40 </style> 41 42 <p>Test passes if there is a filled green square and <strong>no red</strong>. 43 44 <div id="test-overlapping-green"></div> 45 46 <div id="reference-overlapped-red"></div>