background-color-047

Background-color set to rgb() using percentages with the minimum minus one value, rgb(-1%, -1%, -1%)

WeasyPrint

This browser

Flags
image, invalid
Assertion
Background-color set to rgb(-1%, -1%, -1%) 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: Background-color set to rgb() using percentages with the minimum minus one value, rgb(-1%, -1%, -1%)</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#propdef-background-color">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background-properties">
 8         <meta name="flags" content="image invalid">
 9         <meta name="assert" content="Background-color set to rgb(-1%, -1%, -1%) truncates to a valid value.">
10         <style type="text/css">
11             img, #test
12             {
13                 height: 1in;
14                 width: 1in;
15             }
16             #test
17             {
18                 background-color: rgb(-1%, -1%, -1%);
19             }
20         </style>
21     </head>
22     <body>
23         <p>Test passes if the boxes below are the same color.</p>
24         <div id="test"></div>
25         <div id="reference">
26             <br>
27             <img alt="#000 color swatch" src="support/000_color.png">
28         </div>
29     </body>
30 </html>