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 integers with a maximum plus one value, rgb(256, 256, 256)</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="invalid">
9 <meta name="assert" content="The 'border-top-color' set to rgb(256, 256, 256) truncates to a valid value.">
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(256, 256, 256);
29 height: 0;
30 }
31 #reference
32 {
33 background-color: rgb(255, 255, 255);
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>