3 <title>Property is declared twice in rule
</title>
4 <style type=
"text/css">
8 color: green
!important
;
11 width: 2px !important
;
12 width: 3px !important
;
16 if (window
.testRunner
)
17 window
.testRunner
.dumpAsText();
21 <div>This text should be green and the page should have no other style.
</div>
22 <div id=
"testresult">Fail
</div>
23 <script type=
"text/javascript">
24 if(document
.styleSheets
[0].cssRules
[0].style
.length
== 2 &&
25 document
.styleSheets
[0].cssRules
[0].style
.getPropertyValue("color") == "green" &&
26 document
.styleSheets
[0].cssRules
[0].style
.getPropertyPriority("color") == "important" &&
27 document
.styleSheets
[0].cssRules
[0].style
.getPropertyValue("width") == "3px" &&
28 document
.styleSheets
[0].cssRules
[0].style
.getPropertyPriority("width") == "important")
30 document
.getElementById("testresult").innerHTML
= "Pass";