border-008

Border set using border-color border-width

WeasyPrint

This browser

Assertion
The 'border' shorthand property properly accepts and sets 'border-color' 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-color 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-color' and 'border-width'.">
10         <style type="text/css">
11             div
12             {
13                 position: relative;
14             }
15             #test
16             {
17                 border: blue 1in;
18                 border-style: solid;
19                 height: 0;
20                 width: 0;
21             }
22             #reference
23             {
24                 background: red;
25                 height: 2in;
26                 left: 0;
27                 position: absolute;
28                 top: 0;
29                 width: 2in;
30             }
31         </style>
32     </head>
33     <body>
34         <p>Test passes if there is a blue square below and there is no red visible on the page.</p>
35         <div id="wrapper">
36             <div id="reference"></div>
37             <div id="test"></div>
38         </div>
39     </body>
40 </html>