summaryrefslogtreecommitdiffstats
path: root/layout/reftests/first-line/insertion-in-first-line-12.html
blob: da797bbf78f4bfcd37204ee1e80608f94e56da8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!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;
  var span = document.createElement('span');
  span.textContent = 'This should be ';
  y.insertBefore(span, y.firstChild);
</script>