Files
servo/tests/wpt/css-tests/css21_dev/html4/attribute-value-selector-003.htm

22 lines
963 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Attribute selector matching value in list</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors">
<link rel="match" href="reference/attribute-value-selector-001-ref.htm">
<meta name="flags" content="">
<meta name="assert" content="Selector matches attribute with specific value in a space-separated list.">
<style type="text/css">
[class~=est]
{
color: green;
}
</style>
</head>
<body>
<p>Test passes if the first line of "Filler Text" below is black and the second one is green.</p>
<div class="t estDiv">Filler Text</div>
<div class="t est">Filler Text</div>
</body>
</html>