LibWeb: Add some default style for <textarea> elements and a test

This commit is contained in:
Daniel Lemos 2022-03-09 10:00:05 -03:00 committed by Andreas Kling
parent f912a48315
commit 3eb6016dda
Notes: sideshowbarker 2024-07-17 17:10:20 +09:00
3 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,5 @@
<!doctype html>
<textarea>
This is some text
inside a &lt;textarea&gt;
</textarea>

View File

@ -72,6 +72,7 @@
<li><a href="blink.html">blink</a></li>
<li><a href="br.html">br</a></li>
<li><a href="progressbar.html">progressbar</a></li>
<li><a href="textarea.html">textarea</a></li>
</ul>
<h2>CSS</h2>

View File

@ -222,7 +222,7 @@ ol {
}
/* FIXME: This is a temporary hack until we can render a native-looking frame for these. */
input {
input, textarea {
border: 1px solid black;
min-width: 80px;
min-height: 16px;
@ -231,6 +231,12 @@ input {
overflow: hidden;
}
textarea {
padding: 2px;
display: inline-block;
overflow: scroll;
}
input[type=submit], input[type=button], input[type=reset], input[type=checkbox], input[type=radio] {
border: none;
min-width: unset;