1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:57:35 +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:
Sam Atkins 2023-08-30 17:10:38 +01:00 committed by Andreas Kling
parent 4897643ffb
commit 9e227dfc16
3 changed files with 123 additions and 3 deletions

View file

@ -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] {