servo/tests/wpt/css-tests/css-values-3_dev/xhtml1/attr-length-valid-zero-nofallback.xht

39 lines
No EOL
1 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta charset="utf-8" />
<title>
CSS Values and Units Test:
Attribute references (length)
</title>
<meta content="
The value of referenced attribute is used correctly as a length (even if it's 0).
" name="assert" />
<link href="mailto:fremycompany.developer@yahoo.fr" rel="author" title="François REMY" />
<link href="http://www.w3.org/TR/css3-values/#attr-notation" rel="help" />
<link href="reference/200-200-green.xht" rel="match" />
<style type="text/css">
html, body { margin: 0px; padding: 0px; }
html { background: white; overflow: hidden; }
#outer { position: relative; background: green; }
#outer2 { background: red; }
#outer { width: 200px; height: 200px; }
#outer2 { width: 200px; width: attr(data-test length); height: 200px; }
</style>
</head>
<body>
<div id="outer"></div>
<div data-test="0" id="outer2"></div>
</body></html>