layout/reftests/cssom/inline-style-null.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/cssom/inline-style-null.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,13 @@
     1.4 +<!DOCTYPE html>
     1.5 +<style>
     1.6 +  div { color: green; }
     1.7 +  div#reverse { color: red; }
     1.8 +</style>
     1.9 +<div id="null" style="color: red">This text should be green</div>
    1.10 +<div id="emptystring"style="color: red">This text should be green</div>
    1.11 +<div id="reverse" style="color: green">This text should be green</div>
    1.12 +<script>
    1.13 +  document.getElementById("null").style.color = null;
    1.14 +  document.getElementById("emptystring").style.color = "";
    1.15 +  document.getElementById("reverse").style.color = "some invalid color string";
    1.16 +</script>

mercurial