t44-currentcolor-inherited-c

currentColor (with 'background-color')

WeasyPrint

This browser

Assertion
currentColor is a computed 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: currentColor (with 'background-color')</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="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 8 		<link rel="help" href="http://www.w3.org/TR/css3-color/#currentcolor">
 9 		<link rel="help" href="http://www.w3.org/Style/2011/REC-css3-color-20110607-errata.html#s.4.5">
10 		<meta name="flags" content="">
11 		<meta name="assert" content="currentColor is a computed value">
12 		<style type="text/css">
13 		#one {
14 			color: red;
15 			background: currentColor;
16 		}
17 		#two {
18 			color: green;
19 			/* inherit currentColor, which then is green */
20 			background: inherit;
21 		}
22 		#three {
23 			color: white;
24 		}
25 		</style>
26 	</head>
27 	<body>
28 		<div id="one"><div id="two"><p id="three">This paragraph should have a green background.</p></div></div>
29 	</body>
30 </html>