positive-integer-001

Parsing signed integers

WeasyPrint

This browser

Assertion
Positively signed integers are treated the same as non-signed integers.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: Parsing signed integers</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#numbers">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="Positively signed integers are treated the same as non-signed integers.">
 9         <style type="text/css">
10             div
11             {
12                 background-color: black;
13                 height: 0.5in;
14             }
15             #div1
16             {
17                 width: +1in;
18             }
19             #div2
20             {
21                 width: 1in;
22             }
23         </style>
24     </head>
25     <body>
26         <p>Test passes if there is a filled square below.</p>
27         <div id="div1"></div>
28         <div id="div2"></div>
29     </body>
30 </html>