border-width-003

Border-width shorthand property set using three values

WeasyPrint

This browser

Assertion
The 'border-width' shorthand property set using three values correctly sets the border width for the appropriate sides of an element.

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-width shorthand property set using three values</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-width">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-width-properties">
 8         <meta name="flags" content="">
 9         <meta name="assert" content="The 'border-width' shorthand property set using three values correctly sets the border width for the appropriate sides of an element.">
10         <style type="text/css">
11             #test
12             {
13                 border-style: solid;
14                 border-width: 0.5in 0.25in 0.75in;
15                 height: 0;
16                 width: 0;
17             }
18             #reference
19             {
20                 background-color: black;
21                 height: 1.25in;
22                 margin-top: 5px;
23                 width: 0.5in;
24             }
25         </style>
26     </head>
27     <body>
28         <p>Test passes if two boxes below are the same size and shape.</p>
29         <div id="test"></div>
30         <div id="reference"></div>
31     </body>
32 </html>