summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-scrollbars/textarea-scrollbar-width-none-ref.html
blob: 9f505dd7f1d121c0bd0af0131b51f536225326b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Reference</title>
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
<style>
  textarea {
    overflow: hidden;
    white-space: pre;
  }
</style>
<textarea cols="10" rows="10"></textarea>
<script>
  let textarea = document.querySelector("textarea");
  textarea.value = ('X'.repeat(100) + '\n').repeat(100);
</script>