border-right-color-088

Border-right-color set to rgb() using integers with red set to a maximum plus one value, rgb(256, 0, 0)

WeasyPrint

This browser

Flags
invalid
Assertion
The 'border-right-color' set to rgb(256, 0, 0) truncates to a valid value.

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-right-color set to rgb() using integers with red set to a maximum plus one value, rgb(256, 0, 0)</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-right-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-right-color' set to rgb(256, 0, 0) truncates to a valid value.">
10         <style type="text/css">
11             div
12             {
13                 height: 1in;
14                 width: 1in;
15             }
16             #test
17             {
18                 border-right-style: solid;
19                 border-right-width: 1in;
20                 border-right-color: rgb(256, 0, 0);
21             }
22             #reference
23             {
24                 background-color: rgb(255, 0, 0);
25                 margin-top: 10px;
26             }
27         </style>
28     </head>
29     <body>
30         <p>Test passes if the boxes below are the same color.</p>
31         <div id="test"></div>
32         <div id="reference"></div>
33     </body>
34 </html>