diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /layout/reftests/bugs/556661-1.html | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/reftests/bugs/556661-1.html')
-rw-r--r-- | layout/reftests/bugs/556661-1.html | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/layout/reftests/bugs/556661-1.html b/layout/reftests/bugs/556661-1.html new file mode 100644 index 000000000..1941e0b87 --- /dev/null +++ b/layout/reftests/bugs/556661-1.html @@ -0,0 +1,63 @@ +<!doctype html> +<html><head><title>Dynamic manipulation of !important</title> +<style> +div { float: left; width: 50px; height: 50px; margin: 5px } +div#control { + width: 230px; + background-color: green !important; + background-color: red; +} +div#a { background-color: green } +div#b { background-color: orange } +div.c { background-color: orange } +div#d { background-color: orange } +div#e { background-color: green } +div#f { background-color: orange } +div.g { background-color: orange } +div#h { background-color: orange } +p { clear: left } +</style> +<style> +div.a { background-color: red !important } +div.b { background-color: red !important } +div#c { background-color: red } +div.d { background-color: red } +div.e { background-color: red !important } +div.f { background-color: red !important } +div#g { background-color: red } +div.h { background-color: red } +</style> +<script> +window.onload = function() { + var r = document.styleSheets[1].cssRules; + r[0].style.setProperty("background-color", "yellow", ""); + r[1].style.setProperty("background-color", "green", "important"); + r[2].style.setProperty("background-color", "green", ""); + r[3].style.setProperty("background-color", "green", "important"); + + r[4].style.removeProperty("background-color"); + r[4].style.setProperty("background-color", "yellow", ""); + r[5].style.removeProperty("background-color"); + r[5].style.setProperty("background-color", "green", "important"); + r[6].style.removeProperty("background-color"); + r[6].style.setProperty("background-color", "green", ""); + r[7].style.removeProperty("background-color"); + r[7].style.setProperty("background-color", "green", "important"); +} +</script> +<body> +<div class="a" id="a"></div> +<div class="b" id="b"></div> +<div class="c" id="c"></div> +<div class="d" id="d"></div> +<p></p> +<div class="e" id="e"></div> +<div class="f" id="f"></div> +<div class="g" id="g"></div> +<div class="h" id="h"></div> +<p></p> +<div id="control"></div> +<p>There should be two rows of four green squares and one solid green + bar above.</p> +</body> +</html> |