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