gecko-dev/layout/reftests/bugs/1381821.html
Emilio Cobos Álvarez 27a84a9c29 Bug 1381821: reftest. r=bz
MozReview-Commit-ID: AQhUS2JNlYZ

--HG--
extra : rebase_source : 9c88668ff91b5aa9ebc419aab922497e52ee0cf7
2017-08-03 16:57:06 +02:00

17 lines
446 B
HTML

<!DOCTYPE html>
<style>
div { color: green; }
.red > span { color: red; }
</style>
<div id="first"><span></span></div>
<div id="second"><span>This text should be green.</span></div>
<script>
getComputedStyle(second.firstChild).color;
getComputedStyle(first.firstChild).color;
second.className = "red";
getComputedStyle(second.firstChild).color;
first.className = "red";
second.className = "";
getComputedStyle(second.firstChild).color;
</script>