summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-fonts/font-size-monospace-adjust.html
blob: f1a0b7294d350225d00cfc76c6d3081e8aa7220f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<link rel="help" href="https://crbug.com/1086082">
<link rel="match" href="font-size-monospace-adjust-ref.html">
<style>
  textarea {
    font-size: 3em;
    transition: margin-bottom 1e10s steps(2, start);
    margin-bottom: 10px;
  }

  .margin {
    margin-bottom: 20px;
  }
</style>
<textarea id=textarea>Textarea</textarea>
<script>
  document.documentElement.offsetTop;
  textarea.classList.toggle('margin');
</script>