summaryrefslogtreecommitdiff
path: root/old/css_compat/tests/important.html
blob: f8297efe1a27bdab27cb4d4f763bff627c45b0c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>!important handling</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
div {
	background-color: red;
	color: red !important;
	text-decoration: none !important
}
</style>
</head>
<body>
 <div style="background-color: green; color: white !important; text-decoration: strike-through">
    <h1>Should be white on green and not strike-through</h1>
    <ul>
    <li>Style attributes overwrite CSS in style-tags or stylesheets.</li>
    <li>Important declarations in style-tags or stylesheets overwrite
        style attributes.</li>
    <li>Important style attribute declarations overwrite important declarations
        in style-tags or stylesheets.</li>
    </ul>
 </div>
</body>
</html>