Files
servo/tests/wpt/css-tests/css21_dev/html4/cascade-010.htm

21 lines
1000 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: User stylesheet rules with !important and !important author rules</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#important-rules">
<meta name="flags" content="userstyle">
<meta name="assert" content="User stylesheet rules with !important override !important author rules.">
<style type="text/css">
.cascadegreenimportant
{
color: red!important;
}
</style>
</head>
<body>
<p id="cascade">PREREQUISITE: The <a href="support/cascade.css">"cascade.css"</a> file is enabled as the user agent's user style sheet.</p>
<p>Test passes if the "Filler Text" below is green.</p>
<div class="cascadegreenimportant">Filler Text</div>
</body>
</html>