mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:27:34 +00:00
LibWeb: Support displaying HTMLInputElement placeholder values
This adds support for parsing the ::placeholder pseudo-element and injecting an anonymous layout node with that element when the input element's data is empty.
This commit is contained in:
parent
fddbc2e378
commit
4a30446999
5 changed files with 91 additions and 0 deletions
|
@ -49,6 +49,10 @@ input[type=submit], input[type=button], input[type=reset], input[type=checkbox],
|
|||
cursor: unset;
|
||||
}
|
||||
|
||||
input::placeholder {
|
||||
color: rgb(117, 117, 117);
|
||||
}
|
||||
|
||||
button, input[type=submit], input[type=button], input[type=reset] {
|
||||
padding: 1px 4px;
|
||||
background-color: -libweb-palette-button;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue