t422-rgba-onscreen-b

rgba() overpainting

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
Test that rgba() does not behave like opacity and draw in an offscreen buffer.

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: rgba() overpainting</title>
 5 		<link rel="author" title="L. David Baron" href="https://dbaron.org/">
 6 		<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
 7 		<link rel="help" href="http://www.w3.org/TR/css3-color/#rgba-color">
 8 		<link rel="match" href="reference/t422-rgba-onscreen-b-ref.htm">
 9 		<meta name="flags" content="">
10 		<meta name="assert" content="Test that rgba() does not behave like opacity and draw in an offscreen buffer.">
11 		<style type="text/css">
12 		html, body { background: white; }
13 		table { border-spacing: 0 2px; padding: 0; border: none; }
14 		td { border: none; padding: 0; }
15 
16 		td, div { height: 1.2em; }
17 		</style>
18 	</head>
19 	<body>
20 
21 	<p>Every row in this table should have both columns the same color:</p>
22 
23 	<table>
24 		<tr>
25 			<th style="background:white; color: black">Column 1</th>
26 			<th style="background:black; color: white">Column 2</th>
27 		</tr>
28 		<tr>
29 			<td style="background: rgba(0, 0, 255, 0.2)">&nbsp;</td>
30 			<td style="background: rgb(204, 204, 255)">&nbsp;</td>
31 		</tr>
32 		<tr>
33 			<td style="background: rgba(0, 0, 255, 0.2)"><div style="background: inherit">&nbsp;</div></td>
34 			<td style="background: rgb(163, 163, 255)">&nbsp;</td>
35 		</tr>
36 		<tr>
37 			<td style="background: rgba(0, 0, 255, 0.4)">&nbsp;</td>
38 			<td style="background: rgb(153, 153, 255)">&nbsp;</td>
39 		</tr>
40 		<tr>
41 			<td style="background: rgba(0, 0, 255, 0.4)"><div style="background: inherit">&nbsp;</div></td>
42 			<td style="background: rgb(92, 92, 255)">&nbsp;</td>
43 		</tr>
44 		<tr>
45 			<td style="background: rgba(0, 0, 255, 0.6)">&nbsp;</td>
46 			<td style="background: rgb(102, 102, 255)">&nbsp;</td>
47 		</tr>
48 		<tr>
49 			<td style="background: rgba(0, 0, 255, 0.6)"><div style="background: inherit">&nbsp;</div></td>
50 			<td style="background: rgb(41, 41, 255)">&nbsp;</td>
51 		</tr>
52 		<tr>
53 			<td style="background: rgba(0, 0, 255, 0.8)">&nbsp;</td>
54 			<td style="background: rgb(51, 51, 255)">&nbsp;</td>
55 		</tr>
56 		<tr>
57 			<td style="background: rgba(0, 0, 255, 0.8)"><div style="background: inherit">&nbsp;</div></td>
58 			<td style="background: rgb(10, 10, 255)">&nbsp;</td>
59 		</tr>
60 	</table>
61 
62 	</body>
63 </html>