Skip to content

Commit 5f5dced

Browse files
committed
textarea baslide-source:first added
1 parent 8433ce7 commit 5f5dced

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

norm.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ textarea, /* textarea: Firefox and Safari. */
3737
button, input, select /* Safari. */ {
3838
margin: 0;
3939
}
40+
:where(textarea) { /* behave like in firefox */
41+
baseline-source: first; /* available in chrome 111, safari no */
42+
}
4043
button, [type="button"], [type="reset"], [type="submit"] {
4144
-webkit-appearance: button; /* Correct the inability to style buttons in iOS and Safari. */
4245
}

tests/test.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,14 +323,20 @@ <h1>H1 in section</h1>
323323
</section>
324324

325325
<section style="line-height:1.5">
326-
<b>textarea margin:0</b>
326+
<b>textarea</b><br>
327+
<b>margin:0</b>
327328
<br>
328329
<div style="border:1px solid">
329330
<textarea></textarea>g
330331
</div>
331332
<div style="border:1px solid">
332333
<textarea style="margin:0">referenz</textarea>g
333334
</div>
335+
336+
<b>baseline-source:first</b>
337+
<div style="border:1px solid;">
338+
baseline<textarea style="vertical-align: baseline;">vertical-align:baseline</textarea>
339+
</div>
334340
</section>
335341

336342
<section>

0 commit comments

Comments
 (0)