summaryrefslogtreecommitdiffstats
path: root/layout/reftests/first-letter/1385656.html
blob: f3277b6ef871296c1453f243bb4f385eaa8aa413 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<style>
  div { border: 5px solid transparent; }
  div::first-line { }
  div::first-letter { border: inherit; border-color: yellow; }
</style>
<div>
  Some text.
</div>
<script>
  onload = function() {
    var div = document.querySelector("div");
    window.width = div.offsetWidth; // Make sure we flush layout.
    div.appendChild(document.createTextNode('Does the first letter still have a border?'));
  }
</script>