Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-style-attr/style-attr-cascade-002.xht - WPT Dashboard Interop Dashboard
<head>
<title>CSS: style attribute (normal vs. important)</title>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
<link rel="match" href="reference/ref-green.html" />
</head>
<body>
<!--It has a style attribute with "color: red" preceeded by an important "color: green".-->
<div style="color: green ! important; color: red">This should be green.</div>
</body>
</html>