summaryrefslogtreecommitdiffstats
path: root/layout/reftests/first-line/insertion-in-first-line-5.html
blob: f54e84d24bc31eea65d4c0f617d24596d7639837 (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">This should be </span></div>
<script>
  x.offsetWidth;
  y.appendChild(document.createTextNode('green'));
</script>