border-width-001

Border-width shorthand property set using one value

WeasyPrint

This browser

Assertion
The 'border-width' shorthand property set using one value 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 one value</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 one value 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;
15                 height: 0;
16                 width: 0;
17             }
18             #reference
19             {
20                 background-color: black;
21                 height: 1in;
22                 margin-top: 5px;
23                 width: 1in;
24             }
25         </style>
26     </head>
27     <body>
28         <p>Test passes if the boxes below are the same width.</p>
29         <div id="test"></div>
30         <div id="reference"></div>
31     </body>
32 </html>