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-top-color set to rgb() using percentages with a maximum minus one value, rgb(99%, 99%, 99%)</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-top-color">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-color-properties">
8 <meta name="flags" content="">
9 <meta name="assert" content="The 'border-top-color' set to rgb(99%, 99%, 99%) renders the correct color.">
10 <style type="text/css">
11 body
12 {
13 background-color: black;
14 }
15 p
16 {
17 color: white;
18 }
19 div
20 {
21 height: 1in;
22 width: 1in;
23 }
24 #test
25 {
26 border-top-style: solid;
27 border-top-width: 1in;
28 border-top-color: rgb(99%, 99%, 99%);
29 height: 0;
30 }
31 #reference
32 {
33 background-color: rgb(99%, 99%, 99%);
34 margin-top: 10px;
35 }
36 </style>
37 </head>
38 <body>
39 <p>Test passes if the boxes below are the same color.</p>
40 <div id="test"></div>
41 <div id="reference"></div>
42 </body>
43 </html>