summaryrefslogtreecommitdiffstats
path: root/layout/reftests/first-line/insertion-in-first-line-7.html
blob: 903fd9a2c3db96418c8d427fdaf601de0904a357 (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;
  y.insertBefore(document.createTextNode('This should be '), y.firstChild);
</script>