Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit a0fb7d2

Browse files
upsupermoz-wptsync-bot
authored andcommitted
Have anonymous element in text input inherit scrollbar-width from the element.
Differential Revision: https://phabricator.services.mozilla.com/D5101 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1488657 gecko-commit: ab7a4b7fca6579fdba4a1ff692a1e8ec020b0d14 gecko-integration-branch: autoland gecko-reviewers: dholbert
1 parent 1719e8b commit a0fb7d2

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<meta charset="UTF-8">
3+
<title>CSS Reference</title>
4+
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
5+
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
6+
<style>
7+
textarea {
8+
overflow: hidden;
9+
white-space: pre;
10+
}
11+
</style>
12+
<textarea cols="10" rows="10"></textarea>
13+
<script>
14+
let textarea = document.querySelector("textarea");
15+
textarea.value = ('X'.repeat(100) + '\n').repeat(100);
16+
</script>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<meta charset="UTF-8">
3+
<title>CSS Test: scrollbar-width should apply on &lt;textarea&gt;</title>
4+
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
5+
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
6+
<link rel="help" href="https://drafts.csswg.org/css-scrollbars-1/#scrollbar-width">
7+
<link rel="match" href="textarea-scrollbar-width-none-ref.html">
8+
<style>
9+
textarea {
10+
scrollbar-width: none;
11+
white-space: pre;
12+
}
13+
</style>
14+
<textarea cols="10" rows="10"></textarea>
15+
<script>
16+
let textarea = document.querySelector("textarea");
17+
textarea.value = ('X'.repeat(100) + '\n').repeat(100);
18+
</script>

0 commit comments

Comments
 (0)