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