border-top-color-128

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

WeasyPrint

This browser

Flags
invalid
Assertion
The 'border-top-color' set to rgb(0, 0, 256) properly 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-top-color set to rgb() using integers with blue set to a maximum plus one value, rgb(0, 0, 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(0, 0, 256) properly 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-top-style: solid;
19                 border-top-width: 1in;
20                 border-top-color: rgb(0, 0, 256);
21                 height: 0;
22             }
23             #reference
24             {
25                 background-color: rgb(0, 0, 255);
26                 margin-top: 10px;
27             }
28         </style>
29     </head>
30     <body>
31         <p>Test passes if the boxes below are the same color.</p>
32         <div id="test"></div>
33         <div id="reference"></div>
34     </body>
35 </html>