summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-scrollbars/textarea-scrollbar-width-none.html
blob: dcfaf5b6270ee0e0092dc795d33bb01af0b9a695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Test: scrollbar-width should apply on &lt;textarea&gt;</title>
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
<link rel="help" href="https://drafts.csswg.org/css-scrollbars-1/#scrollbar-width">
<link rel="match" href="textarea-scrollbar-width-none-ref.html">
<style>
  textarea {
    scrollbar-width: none;
    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>