summaryrefslogtreecommitdiffstats
path: root/layout/reftests/first-line/insertion-in-first-line-10.html
blob: 60f6898df505cc82648c4a4dd37b4b83910dc5ca (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">This should be </span></div>
<script>
  x.offsetWidth;
  var span = document.createElement('span');
  span.textContent = 'green';
  y.appendChild(span);
</script>