https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 98cc5c8bb77ef18be9c4464c8e66873654ade128 authored by Chris Lilley on 11 April 2018, 09:30:00 UTC
quick test to see if descriptor supported anywhere
Tip revision: 98cc5c8
attr-invalid-type-002.html
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>
		CSS Values and Units Test:
		Attribute references (types)
	</title>
	<meta name="assert" content="
		When the type of an att() function is known and unexpected, the declaration is ignored
	" />

	<link
		rel="author"
		title="François REMY"
		href="mailto:fremycompany.developer@yahoo.fr"
	/ >

	<link rel="help" href="http://www.w3.org/TR/css3-values/#attr-notation"/>

	<link
		rel="match"
		href="reference/200-200-green.html"
	/>

	<style type="text/css">

			html, body { margin: 0px; padding: 0px; }

			html { background: white; overflow: hidden; }
			#outer { position: relative; background: green; }

			#outer { width: 200px; width: attr(data-test number); height: 200px; }
			/* NOTE: while '0' is a valid length AND a valid number, the number type isn't a valid representation of a length. */
			/* The reason for this is that most numbers aren't valid length */
			/* ! Spec need some updates to make those assumptions clearly valid (see Tab Atkins for details) */

	</style>

</head>
<body>

	<div id="outer" data-test="0"></div>

</body>
</html>
back to top