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="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2012-05-16 -->
7 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#propdef-border">
8 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-shorthand-properties">
9 <link rel="help" href="http://www.w3.org/TR/css3-background/#borders">
10 <link rel="help" href="http://www.w3.org/TR/css3-background/#the-border-shorthands">
11 <link rel="match" href="reference/border-005-ref.htm">
12 <meta name="flags" content="">
13 <meta name="assert" content="The 'border' shorthand property properly accepts and sets 'border-color' and 'border-width'.">
14 <style type="text/css">
15 div
16 {
17 position: relative;
18 }
19 #test
20 {
21 border: blue 1in;
22 border-style: solid;
23 height: 0;
24 width: 0;
25 }
26 #reference
27 {
28 background: red;
29 height: 2in;
30 left: 0;
31 position: absolute;
32 top: 0;
33 width: 2in;
34 }
35 </style>
36 </head>
37 <body>
38 <p>Test passes if there is a filled blue square and <strong>no red</strong>.</p>
39 <div id="wrapper">
40 <div id="reference"></div>
41 <div id="test"></div>
42 </div>
43 </body>
44 </html>