mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:07:46 +00:00
LibWeb: Flesh out HTMLTextAreaElement
Give it a shadow tree, similar to HTMLInputElement's, so that we can actually edit its contents at a basic level. Add some CSS to use the `rows` and `cols` attributes as the size if they are present.
This commit is contained in:
parent
4897643ffb
commit
9e227dfc16
3 changed files with 123 additions and 3 deletions
|
@ -38,7 +38,10 @@ input, textarea {
|
|||
textarea {
|
||||
padding: 2px;
|
||||
display: inline-block;
|
||||
overflow: scroll;
|
||||
overflow: auto;
|
||||
font-family: monospace;
|
||||
width: attr(cols ch, 20ch);
|
||||
height: attr(rows lh, 2lh);
|
||||
}
|
||||
|
||||
input[type=submit], input[type=button], input[type=reset], input[type=checkbox], input[type=radio] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue