summaryrefslogtreecommitdiff
path: root/old/css_compat/tests/important.html
diff options
context:
space:
mode:
Diffstat (limited to 'old/css_compat/tests/important.html')
-rw-r--r--old/css_compat/tests/important.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/old/css_compat/tests/important.html b/old/css_compat/tests/important.html
new file mode 100644
index 0000000..f8297ef
--- /dev/null
+++ b/old/css_compat/tests/important.html
@@ -0,0 +1,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>