t31-color-currentcolor-b

color

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
That currentColor on the color property acts like inherit.

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: 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="help" href="http://www.w3.org/TR/css3-color/#foreground">
 8 		<link rel="help" href="http://www.w3.org/TR/css3-color/#currentcolor">
 9 		<link rel="match" href="reference/t31-color-currentColor-b-ref.htm">
10 		<meta name="flags" content="">
11 		<meta name="assert" content="That currentColor on the color property acts like inherit.">
12 		<style type="text/css">
13 			#one { color: green; }
14 			#two { color: red; }
15 			#two { color: currentColor; }
16 		</style>
17 	</head>
18 	<body>
19 		<div id="one"><p id="two">This text should be green.</p></div>
20 	</body>
21 </html>