css-e-notation-test-1.html (1497B)
1 <!DOCTYPE html> 2 <title>CSS test: E-notation</title> 3 <link rel="author" title="Bert Bos" href="mailto:bert@w3.org"> 4 <link rel="help" href="http://www.w3.org/TR/CSS2/syndata.html#numbers"> 5 <link rel="match" href="css-e-notation-ref-1.html"> 6 <meta name="flags" content="asis"> 7 <meta name="assert" content="Test checks interpretation of numbers in e-notation."> 8 <style> 9 body {background: white; color: black; min-width: 400px} 10 </style> 11 <body> 12 <p>Test passes if all rectangles below are 300px wide 13 14 <p> 15 <svg height="190px" width="400px" viewbox="0 0 400 190" 16 xmlns="http://www.w3.org/2000/svg"> 17 <style type="text/css"> 18 line {stroke: black} 19 #p0 {stroke-width: 300px} 20 #p1 {stroke-width: 3e2px} 21 #p2 {stroke-width: 3.0e2px} 22 #p3 {stroke-width: 30.0e1px} 23 #p4 {stroke-width: 300.0e0px} 24 #p5 {stroke-width: 3e+2px} 25 #p6 {stroke-width: 3E+2px} 26 #p7 {stroke-width: 0.3E+3px} 27 #p8 {stroke-width: 3000.0E-1px} 28 #p9 {stroke-width: 30000.000000000000000E-2px} 29 </style> 30 <line id="p0" x1="200" y1="0" x2="200" y2="10"/> 31 <line id="p1" x1="200" y1="20" x2="200" y2="30"/> 32 <line id="p2" x1="200" y1="40" x2="200" y2="50"/> 33 <line id="p3" x1="200" y1="60" x2="200" y2="70"/> 34 <line id="p4" x1="200" y1="80" x2="200" y2="90"/> 35 <line id="p5" x1="200" y1="100" x2="200" y2="110"/> 36 <line id="p6" x1="200" y1="120" x2="200" y2="130"/> 37 <line id="p7" x1="200" y1="140" x2="200" y2="150"/> 38 <line id="p8" x1="200" y1="160" x2="200" y2="170"/> 39 <line id="p9" x1="200" y1="180" x2="200" y2="190"/> 40 </svg> 41 </body>