1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:47:35 +00:00

LibWeb: Add support for the input size attribute

This commit is contained in:
Bastiaan van der Plaat 2023-11-24 17:37:53 +01:00 committed by Andreas Kling
parent d9fb116bcc
commit fb7b03d162
5 changed files with 30 additions and 9 deletions

View file

@ -28,9 +28,8 @@ label {
/* FIXME: This is a temporary hack until we can render a native-looking frame for these. */
input:not([type=submit], input[type=button], input[type=reset], input[type=color], input[type=checkbox], input[type=radio]), textarea {
border: 1px solid ButtonBorder;
min-width: 80px;
min-height: 16px;
width: 120px;
width: attr(size ch, 20ch);
cursor: text;
overflow: hidden;
}