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