border-006

Border set using border-style border-width

WeasyPrint

This browser

Assertion
The 'border' shorthand property properly accepts and sets 'border-style' and 'border-width'.

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: Border set using border-style border-width</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#propdef-border">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-shorthand-properties">
 8         <meta name="flags" content="">
 9         <meta name="assert" content="The 'border' shorthand property properly accepts and sets 'border-style' and 'border-width'.">
10         <style type="text/css">
11             div
12             {
13                 position: relative;
14             }
15             #test
16             {
17                 border: solid 1in;
18                 height: 0;
19                 width: 0;
20             }
21             #reference
22             {
23                 background: red;
24                 height: 2in;
25                 left: 0;
26                 position: absolute;
27                 top: 0;
28                 width: 2in;
29             }
30         </style>
31     </head>
32     <body>
33         <p>Test passes if there is a square below and there is no red visible on the page.</p>
34         <div id="wrapper">
35             <div id="reference"></div>
36             <div id="test"></div>
37         </div>
38     </body>
39 </html>