mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
LibWeb: Add some default style for <textarea> elements and a test
This commit is contained in:
parent
f912a48315
commit
3eb6016dda
Notes:
sideshowbarker
2024-07-17 17:10:20 +09:00
Author: https://github.com/xspager Commit: https://github.com/SerenityOS/serenity/commit/3eb6016dda Pull-request: https://github.com/SerenityOS/serenity/pull/12965 Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/kleinesfilmroellchen ✅
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…
Reference in New Issue
Block a user