Files
servo/tests/wpt/css-tests/css21_dev/html4/id-selector-002.htm

24 lines
842 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>CSS Test: ID selector syntax - Begins with hyphen</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#id-selectors">
<meta name="flags" content="">
<meta name="assert" content="Identifier selectors starting with a hyphen are valid.">
<style type="text/css">
div
{
color: red;
}
#-div1
{
color: green;
}
</style>
</head>
<body>
<p>Test passes if there is no red visible on the page.</p>
<div id="-div1">Filler Text</div>
</body>
</html>