summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/replaced-elements/the-textarea-element/textarea-padding-bend-overlaps-content-001.tentative.html
blob: d99ca1956f36cacca26874fc35a7b879952dd60b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<meta charset="utf-8">
<title>Test: padding-block-end on a textarea creates space that content can render into</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-textarea-element-2">
<link rel="match" href="textarea-padding-bend-overlaps-content-001-ref.html">

<link rel="stylesheet" href="/fonts/ahem.css">
<style>
textarea {
  font: 10px/1 Ahem;

  /* Zero out the content-box, leaving the padding area as the only
     place where the contents might get rendered. */
  block-size: 0;
  inline-size: 10em;

  padding-block-end: 8em;

  /* The textarea's padding-block-end may create overflow in the block axis,
     and hence generate a scrollbar in the testcase that's not present in the
     reference case (and might be hard to properly mock up there).  We avoid
     this problem by suppressing scrollbars using "overflow:hidden": */
  overflow: hidden;
}
.rtl { direction: rtl; }
.vlr { writing-mode: vertical-lr; }
.vrl { writing-mode: vertical-rl; }
.slr { writing-mode: sideways-lr; }
.srl { writing-mode: sideways-rl; }
</style>

<textarea>X</textarea>
<textarea class="rtl">X</textarea>
<br>
<textarea class="vlr">X</textarea>
<textarea class="vrl">X</textarea>
<textarea class="slr">X</textarea>
<textarea class="srl">X</textarea>
<br>
<textarea class="vlr rtl">X</textarea>
<textarea class="vrl rtl">X</textarea>
<textarea class="slr rtl">X</textarea>
<textarea class="srl rtl">X</textarea>