mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
LibWeb: Add some default style for <textarea> elements and a test
This commit is contained in:
parent
f912a48315
commit
3eb6016dda
3 changed files with 13 additions and 1 deletions
5
Base/res/html/misc/textarea.html
Normal file
5
Base/res/html/misc/textarea.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<!doctype html>
|
||||
<textarea>
|
||||
This is some text
|
||||
inside a <textarea>
|
||||
</textarea>
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue