attr-invalid-type-002

Attribute references (types)

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
When the type of an att() function is known and unexpected, the declaration is ignored

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3 	<meta charset="utf-8">
 4 	<title>
 5 		CSS Values and Units Test:
 6 		Attribute references (types)
 7 	</title>
 8 	<meta content="
 9 		When the type of an att() function is known and unexpected, the declaration is ignored
10 	" name="assert">
11 
12 	<link href="mailto:fremycompany.developer@yahoo.fr" rel="author" title="François REMY">
13 
14 	<link href="http://www.w3.org/TR/css3-values/#attr-notation" rel="help">
15 
16 	<link href="reference/200-200-green.htm" rel="match">
17 
18 	<style type="text/css">
19 
20 			html, body { margin: 0px; padding: 0px; }
21 
22 			html { background: white; overflow: hidden; }
23 			#outer { position: relative; background: green; }
24 
25 			#outer { width: 200px; width: attr(data-test number); height: 200px; }
26 			/* NOTE: while '0' is a valid length AND a valid number, the number type isn't a valid representation of a length. */
27 			/* The reason for this is that most numbers aren't valid length */
28 			/* ! Spec need some updates to make those assumptions clearly valid (see Tab Atkins for details) */
29 
30 	</style>
31 
32 </head>
33 <body>
34 
35 	<div data-test="0" id="outer"></div>
36 
37 
38 
39 </body></html>