mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 01:27:44 +00:00
LibWeb: Begin implementing the HTMLInputElement 'image' type state
This implements enough to represent <input type=image> with its loaded source image (or fallback to its alt text, if applicable). This does not implement acquring coordinates from user-activated click events on the image.
This commit is contained in:
parent
45a47cb32b
commit
debb5690ce
7 changed files with 214 additions and 2 deletions
|
@ -26,7 +26,7 @@ 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], input[type=range]), textarea {
|
||||
input:not([type=submit], input[type=button], input[type=image], input[type=reset], input[type=color], input[type=checkbox], input[type=radio], input[type=range]), textarea {
|
||||
border: 1px solid ButtonBorder;
|
||||
min-height: 16px;
|
||||
width: attr(size ch, 20ch);
|
||||
|
@ -55,6 +55,10 @@ button, input[type=submit], input[type=button], input[type=reset], select {
|
|||
cursor: default;
|
||||
}
|
||||
|
||||
input[type=image] {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button:hover, input[type=submit]:hover, input[type=button]:hover, input[type=reset]:hover, select:hover {
|
||||
/* FIXME: There isn't a <system-color> keyword for this, so this is a slightly lightened
|
||||
* version of our light ButtonFace color. Once we support `color-scheme: dark`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue