From 45e4ab69d6a2043a095abe7296f9de4bbd456eaa Mon Sep 17 00:00:00 2001 From: Colin Reeder Date: Mon, 2 Sep 2024 12:24:46 -0600 Subject: [PATCH] LibWeb: Add background color to input fields --- Tests/LibWeb/Ref/input-background.html | 5 +++++ Tests/LibWeb/Ref/reference/input-background.html | 4 ++++ Userland/Libraries/LibWeb/CSS/Default.css | 3 +++ 3 files changed, 12 insertions(+) create mode 100644 Tests/LibWeb/Ref/input-background.html create mode 100644 Tests/LibWeb/Ref/reference/input-background.html diff --git a/Tests/LibWeb/Ref/input-background.html b/Tests/LibWeb/Ref/input-background.html new file mode 100644 index 00000000000..d0077572390 --- /dev/null +++ b/Tests/LibWeb/Ref/input-background.html @@ -0,0 +1,5 @@ + + +
+ +
diff --git a/Tests/LibWeb/Ref/reference/input-background.html b/Tests/LibWeb/Ref/reference/input-background.html new file mode 100644 index 00000000000..bfead6a5b8a --- /dev/null +++ b/Tests/LibWeb/Ref/reference/input-background.html @@ -0,0 +1,4 @@ + +
+ +
diff --git a/Userland/Libraries/LibWeb/CSS/Default.css b/Userland/Libraries/LibWeb/CSS/Default.css index d5a11860e0e..7d51222c6d2 100644 --- a/Userland/Libraries/LibWeb/CSS/Default.css +++ b/Userland/Libraries/LibWeb/CSS/Default.css @@ -31,6 +31,9 @@ input:not([type=submit], input[type=button], input[type=image], input[type=reset min-height: 16px; cursor: text; overflow: hidden; + + background-color: Field; + color: FieldText; } textarea {