summaryrefslogtreecommitdiffstats
path: root/layout/reftests/first-line/insertion-in-first-line-3.html
blob: 81857453f639783ae55e54d652a452c7c3324c67 (plain)
1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>
<style>
  div { color: red; }
  div::first-line { color: green }
</style>
<div id="x"><span id="y">green</span></div>
<script>
  x.offsetWidth;
  x.insertBefore(document.createTextNode('This should be '), y);
</script>