layout/reftests/ib-split/insert-into-split-inline-17.html
author Margareta Eliza Balazs <ebalazs@mozilla.com>
Thu, 11 Jan 2018 22:32:27 +0200
changeset 398876 0524b54f7f9dc0568a55b5d70fef4180d4cb1838
parent 366161 01deb185c67af6676a3be11f5b3cfb225a599f26
permissions -rw-r--r--
Backed out changeset 6d539e4a02bd (bug 1403519) for lint failures on a CLOSED TREE

<!DOCTYPE html>
<style>
  #target { color: red; }
  #target.green { color: green; }
</style>
<span id="target">
  <div></div>
  First <span id="next"> Third</span>
  <div></div>
</span>
<script>
  onload = function() {
    var s = document.querySelector("#target");
    window.color = getComputedStyle(s).color;
    s.className = "green";
    window.newColor = getComputedStyle(s).color;
    s.insertBefore(document.createTextNode("Second"),
                   s.querySelector("#next"));
  }
</script>