Skip to content

Truly independent web browser

LibWeb+LibWebCommon: Match Chrome's button, field and canvas colors

Andreas Kling5c8301e9c500
diff --git a/Libraries/LibWeb/CSS/Default.css b/Libraries/LibWeb/CSS/Default.css
index 50b285daaee..b55642031dc 100644
--- a/Libraries/LibWeb/CSS/Default.css
+++ b/Libraries/LibWeb/CSS/Default.css
@@ -25,7 +25,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=image], input[type=reset], input[type=color], input[type=checkbox], input[type=file], input[type=radio], input[type=range]), textarea {
- border: 1px solid ButtonBorder;
+ border: 1px solid light-dark(#767676, #858585);
padding: 1px 2px;
min-height: 16px;
cursor: text;
@@ -53,7 +53,7 @@ input::placeholder, textarea::placeholder {
button, input[type=submit], input[type=button], input[type=reset], select, ::file-selector-button {
padding: 1px 4px;
background-color: ButtonFace;
- border: 1px solid ButtonBorder;
+ border: 1px solid light-dark(#767676, #858585);
color: ButtonText;
cursor: default;
diff --git a/Libraries/LibWeb/Rust/src/css/color_resolution.rs b/Libraries/LibWeb/Rust/src/css/color_resolution.rs
index f267946c85c..abe4f86470f 100644
--- a/Libraries/LibWeb/Rust/src/css/color_resolution.rs
+++ b/Libraries/LibWeb/Rust/src/css/color_resolution.rs
@@ -529,31 +529,31 @@ fn active_text(dark: bool) -> Rgba {
}
fn button_border(dark: bool) -> Rgba {
- if dark { rgb(72, 72, 72) } else { rgb(128, 128, 128) }
+ if dark { rgb(255, 255, 255) } else { rgb(0, 0, 0) }
}
fn button_face(dark: bool) -> Rgba {
- if dark { rgb(32, 29, 25) } else { rgb(212, 208, 200) }
+ if dark { rgb(107, 107, 107) } else { rgb(239, 239, 239) }
}
fn button_text(dark: bool) -> Rgba {
- if dark { rgb(235, 235, 235) } else { rgb(0, 0, 0) }
+ if dark { rgb(255, 255, 255) } else { rgb(0, 0, 0) }
}
fn canvas(dark: bool) -> Rgba {
- if dark { rgb(20, 20, 20) } else { rgb(255, 255, 255) }
+ if dark { rgb(18, 18, 18) } else { rgb(255, 255, 255) }
}
fn canvas_text(dark: bool) -> Rgba {
- if dark { rgb(235, 235, 235) } else { rgb(0, 0, 0) }
+ if dark { rgb(255, 255, 255) } else { rgb(0, 0, 0) }
}
fn field(dark: bool) -> Rgba {
- if dark { rgb(32, 29, 25) } else { rgb(255, 255, 255) }
+ if dark { rgb(59, 59, 59) } else { rgb(255, 255, 255) }
}
fn field_text(dark: bool) -> Rgba {
- if dark { rgb(235, 235, 235) } else { rgb(0, 0, 0) }
+ if dark { rgb(255, 255, 255) } else { rgb(0, 0, 0) }
}
fn gray_text(_dark: bool) -> Rgba {
@@ -2117,7 +2117,7 @@ mod tests {
};
assert_eq!(
to_color(&keyword_value(keyword::CANVAS), &dark_input),
- Some(rgb(20, 20, 20))
+ Some(rgb(18, 18, 18))
);
assert_eq!(to_color(&keyword_value(keyword::AUTO), &EMPTY_INPUT), None);
@@ -2207,7 +2207,7 @@ mod tests {
system_color_for_keyword(keyword::CANVAS, false),
Some(rgb(255, 255, 255))
);
- assert_eq!(system_color_for_keyword(keyword::CANVAS, true), Some(rgb(20, 20, 20)));
+ assert_eq!(system_color_for_keyword(keyword::CANVAS, true), Some(rgb(18, 18, 18)));
assert_eq!(
system_color_for_keyword(keyword::SCROLLBAR, false),
Some(rgb(255, 255, 255))
@@ -2218,11 +2218,11 @@ mod tests {
);
assert_eq!(
system_color_for_keyword(keyword::_LIBWEB_BUTTONFACEDISABLED, false),
- Some(rgb(212, 208, 200).with_alpha(128))
+ Some(rgb(239, 239, 239).with_alpha(128))
);
assert_eq!(
system_color_for_keyword(keyword::_LIBWEB_BUTTONFACEHOVER, false),
- Some(rgb(169, 166, 160))
+ Some(rgb(191, 191, 191))
);
assert_eq!(
system_color_for_keyword(keyword::VISITEDTEXT, true),
diff --git a/Libraries/LibWebCommon/CSS/SystemColor.cpp b/Libraries/LibWebCommon/CSS/SystemColor.cpp
index 89d4e6f2aad..62b2421cb56 100644
--- a/Libraries/LibWebCommon/CSS/SystemColor.cpp
+++ b/Libraries/LibWebCommon/CSS/SystemColor.cpp
@@ -29,23 +29,23 @@ Color active_text(PreferredColorScheme scheme)
Color button_border(PreferredColorScheme scheme)
{
if (scheme == PreferredColorScheme::Dark) {
- return Color(72, 72, 72);
+ return Color(255, 255, 255);
}
- return Color(128, 128, 128);
+ return Color(0, 0, 0);
}
Color button_face(PreferredColorScheme scheme)
{
if (scheme == PreferredColorScheme::Dark) {
- return Color(32, 29, 25);
+ return Color(107, 107, 107);
}
- return Color(212, 208, 200);
+ return Color(239, 239, 239);
}
Color button_text(PreferredColorScheme scheme)
{
if (scheme == PreferredColorScheme::Dark) {
- return Color(235, 235, 235);
+ return Color(255, 255, 255);
}
return Color(0, 0, 0);
}
@@ -53,7 +53,7 @@ Color button_text(PreferredColorScheme scheme)
Color canvas(PreferredColorScheme scheme)
{
if (scheme == PreferredColorScheme::Dark) {
- return Color(20, 20, 20);
+ return Color(18, 18, 18);
}
return Color(255, 255, 255);
}
@@ -61,7 +61,7 @@ Color canvas(PreferredColorScheme scheme)
Color canvas_text(PreferredColorScheme scheme)
{
if (scheme == PreferredColorScheme::Dark) {
- return Color(235, 235, 235);
+ return Color(255, 255, 255);
}
return Color(0, 0, 0);
}
@@ -69,7 +69,7 @@ Color canvas_text(PreferredColorScheme scheme)
Color field(PreferredColorScheme scheme)
{
if (scheme == PreferredColorScheme::Dark) {
- return Color(32, 29, 25);
+ return Color(59, 59, 59);
}
return Color(255, 255, 255);
}
@@ -77,7 +77,7 @@ Color field(PreferredColorScheme scheme)
Color field_text(PreferredColorScheme scheme)
{
if (scheme == PreferredColorScheme::Dark) {
- return Color(235, 235, 235);
+ return Color(255, 255, 255);
}
return Color(0, 0, 0);
}
diff --git a/Tests/LibWeb/Ref/expected/selection-default-meta-dark-color-scheme-ref.html b/Tests/LibWeb/Ref/expected/selection-default-meta-dark-color-scheme-ref.html
index de7234e1ed9..f805f9685f7 100644
--- a/Tests/LibWeb/Ref/expected/selection-default-meta-dark-color-scheme-ref.html
+++ b/Tests/LibWeb/Ref/expected/selection-default-meta-dark-color-scheme-ref.html
@@ -8,7 +8,7 @@ p {
}
.selected {
background: rgba(61, 174, 233, 0.5);
- color: rgb(235, 235, 235);
+ color: rgb(255, 255, 255);
}
</style>
diff --git a/Tests/LibWeb/Screenshot/expected-macos/color-scheme.png b/Tests/LibWeb/Screenshot/expected-macos/color-scheme.png
index 96ae9e0e06f..6a7e545b7a5 100644
Binary files a/Tests/LibWeb/Screenshot/expected-macos/color-scheme.png and b/Tests/LibWeb/Screenshot/expected-macos/color-scheme.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/checkbox-accent-color-and-color-scheme.png b/Tests/LibWeb/Screenshot/expected/checkbox-accent-color-and-color-scheme.png
index f5060ca6651..5c59a9c1a19 100644
Binary files a/Tests/LibWeb/Screenshot/expected/checkbox-accent-color-and-color-scheme.png and b/Tests/LibWeb/Screenshot/expected/checkbox-accent-color-and-color-scheme.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/color-scheme.png b/Tests/LibWeb/Screenshot/expected/color-scheme.png
index 4e64977e510..576dea98996 100644
Binary files a/Tests/LibWeb/Screenshot/expected/color-scheme.png and b/Tests/LibWeb/Screenshot/expected/color-scheme.png differ
diff --git a/Tests/LibWeb/Screenshot/expected/input-placeholder.png b/Tests/LibWeb/Screenshot/expected/input-placeholder.png
index 46abea85cad..99225ee6ee1 100644
Binary files a/Tests/LibWeb/Screenshot/expected/input-placeholder.png and b/Tests/LibWeb/Screenshot/expected/input-placeholder.png differ
diff --git a/Tests/LibWeb/Text/expected/HTML/meta-theme-color-resolution.txt b/Tests/LibWeb/Text/expected/HTML/meta-theme-color-resolution.txt
index 78cf64e343f..6100ffd4171 100644
--- a/Tests/LibWeb/Text/expected/HTML/meta-theme-color-resolution.txt
+++ b/Tests/LibWeb/Text/expected/HTML/meta-theme-color-resolution.txt
@@ -2,4 +2,4 @@ rgb(calc(10em / 1px) 0 0): rgb(200, 0, 0)
light-dark(red, rgb(0 0 200)): rgb(0, 0, 200)
currentcolor: rgb(0, 128, 0)
rgb(from currentcolor r g 100): rgb(0, 128, 100)
-Canvas: rgb(20, 20, 20)
+Canvas: rgb(18, 18, 18)
diff --git a/Tests/LibWeb/Text/expected/css/compositor-background-color-animation-scheme-dependent-colors.txt b/Tests/LibWeb/Text/expected/css/compositor-background-color-animation-scheme-dependent-colors.txt
index 263c3bf3306..4644b7b5fa9 100644
--- a/Tests/LibWeb/Text/expected/css/compositor-background-color-animation-scheme-dependent-colors.txt
+++ b/Tests/LibWeb/Text/expected/css/compositor-background-color-animation-scheme-dependent-colors.txt
@@ -3,6 +3,6 @@ light-dark keyframes: rgba(0, 0, 200, 0), rgb(0, 0, 255)
light-dark-font-relative uses compositor: true
light-dark-font-relative keyframes: rgba(200, 0, 0, 0), rgb(0, 0, 255)
system uses compositor: true
-system keyframes: rgb(20, 20, 20), rgb(235, 235, 235)
+system keyframes: rgb(18, 18, 18), rgb(255, 255, 255)
scripted-light-dark-font-relative uses compositor: true
scripted-light-dark-font-relative keyframes: rgba(200, 0, 0, 0), rgb(0, 0, 255)
diff --git a/Tests/LibWeb/Text/expected/css/effective-color-scheme-resolution.txt b/Tests/LibWeb/Text/expected/css/effective-color-scheme-resolution.txt
index 00088f4237d..33478f513c8 100644
--- a/Tests/LibWeb/Text/expected/css/effective-color-scheme-resolution.txt
+++ b/Tests/LibWeb/Text/expected/css/effective-color-scheme-resolution.txt
@@ -1,5 +1,5 @@
-preferred: light dark / rgb(235, 235, 235)
+preferred: light dark / rgb(255, 255, 255)
first-supported: custom light / rgb(0, 0, 0)
-normal: normal / rgb(235, 235, 235)
-variable: dark / rgb(235, 235, 235)
+normal: normal / rgb(255, 255, 255)
+variable: dark / rgb(255, 255, 255)
animated: dark / rgb(0, 0, 0)
diff --git a/Tests/LibWeb/Text/expected/css/keyframe-environment-light-dark-system-colors.txt b/Tests/LibWeb/Text/expected/css/keyframe-environment-light-dark-system-colors.txt
index 1a6778e8e10..34b2435bcac 100644
--- a/Tests/LibWeb/Text/expected/css/keyframe-environment-light-dark-system-colors.txt
+++ b/Tests/LibWeb/Text/expected/css/keyframe-environment-light-dark-system-colors.txt
@@ -1,4 +1,4 @@
light system color: true (rgb(0, 0, 0))
light light-dark: true (rgb(10, 20, 30))
-dark system color: true (rgb(235, 235, 235))
+dark system color: true (rgb(255, 255, 255))
dark light-dark: true (rgb(40, 50, 60))
diff --git a/Tests/LibWeb/Text/expected/css/style-engine/document-color-scheme-list.txt b/Tests/LibWeb/Text/expected/css/style-engine/document-color-scheme-list.txt
index 2e56769ad6f..3576108e52e 100644
--- a/Tests/LibWeb/Text/expected/css/style-engine/document-color-scheme-list.txt
+++ b/Tests/LibWeb/Text/expected/css/style-engine/document-color-scheme-list.txt
@@ -1,6 +1,6 @@
-light / custom1 custom2 custom3 custom4 dark: rgb(235, 235, 235) / rgb(0, 0, 0)
-dark / light light light light dark: rgb(235, 235, 235) / rgb(0, 0, 0)
+light / custom1 custom2 custom3 custom4 dark: rgb(255, 255, 255) / rgb(0, 0, 0)
+dark / light light light light dark: rgb(255, 255, 255) / rgb(0, 0, 0)
light / dark dark dark dark light: rgb(0, 0, 0) / rgb(255, 255, 255)
light / custom1 custom2 dark light: rgb(0, 0, 0) / rgb(255, 255, 255)
-dark / custom1 custom2 light dark: rgb(235, 235, 235) / rgb(0, 0, 0)
+dark / custom1 custom2 light dark: rgb(255, 255, 255) / rgb(0, 0, 0)
dark / custom1 custom2 custom3 custom4 custom5: rgb(0, 0, 0) / rgb(255, 255, 255)
diff --git a/Tests/LibWeb/Text/expected/css/system-color-highlight-color-scheme.txt b/Tests/LibWeb/Text/expected/css/system-color-highlight-color-scheme.txt
index 0bbc7710178..7380509b3ca 100644
--- a/Tests/LibWeb/Text/expected/css/system-color-highlight-color-scheme.txt
+++ b/Tests/LibWeb/Text/expected/css/system-color-highlight-color-scheme.txt
@@ -1,3 +1,3 @@
Light HighlightText: rgb(255, 255, 255)
Dark HighlightText: rgb(20, 20, 20)
-Dark CanvasText: rgb(235, 235, 235)
+Dark CanvasText: rgb(255, 255, 255)
diff --git a/Tests/LibWeb/Text/expected/display_list/button-with-text-decoration.txt b/Tests/LibWeb/Text/expected/display_list/button-with-text-decoration.txt
index d0bb85453d0..a47b1c8e62f 100644
--- a/Tests/LibWeb/Text/expected/display_list/button-with-text-decoration.txt
+++ b/Tests/LibWeb/Text/expected/display_list/button-with-text-decoration.txt
@@ -6,8 +6,8 @@ AccumulatedVisualContext Tree:
[e0 in s0] effects=[]
DisplayList:
-FillRect@s1/e0 rect=[8,8 106x20] color=rgb(212, 208, 200)
-FillRoundedRectRing@s1/e0 rect=[8,8 106x20] widths=[1,1,1,1] color=rgb(128, 128, 128)
+FillRect@s1/e0 rect=[8,8 106x20] color=rgb(239, 239, 239)
+FillRoundedRectRing@s1/e0 rect=[8,8 106x20] widths=[1,1,1,1] color=rgb(118, 118, 118)
DrawGlyphRun@s1/e0 rect=[13,10 96x16] translation=[13,22.796875] color=rgb(0, 0, 0)
DrawLine@s1/e0 from=[13,26] to=[109,26] color=rgb(0, 0, 0) thickness=2 style=Solid
diff --git a/Tests/LibWeb/Text/expected/display_list/input-caret.txt b/Tests/LibWeb/Text/expected/display_list/input-caret.txt
index de19cc13f16..4d2288da3d8 100644
--- a/Tests/LibWeb/Text/expected/display_list/input-caret.txt
+++ b/Tests/LibWeb/Text/expected/display_list/input-caret.txt
@@ -10,7 +10,7 @@ AccumulatedVisualContext Tree:
DisplayList:
FillRect@s1/e0 rect=[8,8 106x20] color=rgb(255, 255, 255)
-FillRoundedRectRing@s1/e0 rect=[8,8 106x20] widths=[1,1,1,1] color=rgb(128, 128, 128)
+FillRoundedRectRing@s1/e0 rect=[8,8 106x20] widths=[1,1,1,1] color=rgb(118, 118, 118)
DrawGlyphRun@s1/c1/e0 rect=[11,10 37x16] translation=[11,22.796875] color=rgb(0, 0, 0)
PaintCaret@s1/c1/e0 rect=[11,10 1x16] color=rgb(0, 0, 0) should_blink=false
FillRoundedRectRing@s1/e0 rect=[6,6 110x24] widths=[2,2,2,2] color=rgb(61, 174, 233)
diff --git a/Tests/LibWeb/Text/expected/display_list/input-focus-switch-selection-and-caret.txt b/Tests/LibWeb/Text/expected/display_list/input-focus-switch-selection-and-caret.txt
index a67167863fc..5c138f747de 100644
--- a/Tests/LibWeb/Text/expected/display_list/input-focus-switch-selection-and-caret.txt
+++ b/Tests/LibWeb/Text/expected/display_list/input-focus-switch-selection-and-caret.txt
@@ -12,11 +12,11 @@ AccumulatedVisualContext Tree:
DisplayList:
FillRect@s1/e0 rect=[8,8 206x20] color=rgb(255, 255, 255)
-FillRoundedRectRing@s1/e0 rect=[8,8 206x20] widths=[1,1,1,1] color=rgb(128, 128, 128)
+FillRoundedRectRing@s1/e0 rect=[8,8 206x20] widths=[1,1,1,1] color=rgb(118, 118, 118)
DrawGlyphRun@s1/c1/e0 rect=[11,10 28x16] translation=[11,22.796875] color=rgb(0, 0, 0)
DrawGlyphRun@s1/e0 rect=[214,13 8x16] translation=[214,25.796875] color=rgb(0, 0, 0)
FillRect@s1/e0 rect=[222,8 206x20] color=rgb(255, 255, 255)
-FillRoundedRectRing@s1/e0 rect=[222,8 206x20] widths=[1,1,1,1] color=rgb(128, 128, 128)
+FillRoundedRectRing@s1/e0 rect=[222,8 206x20] widths=[1,1,1,1] color=rgb(118, 118, 118)
DrawGlyphRun@s1/c3/e0 rect=[225,10 28x16] translation=[225,22.796875] color=rgb(0, 0, 0)
PaintCaret@s1/c3/e0 rect=[225,10 1x16] color=rgb(0, 0, 0) should_blink=false
FillRoundedRectRing@s1/e0 rect=[220,6 210x24] widths=[2,2,2,2] color=rgb(61, 174, 233)
diff --git a/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txt b/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txt
index 3ebce6a693c..ca31526dbfd 100644
--- a/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txt
+++ b/Tests/LibWeb/Text/expected/display_list/page-focus-rendering.txt
@@ -10,7 +10,7 @@ AccumulatedVisualContext Tree:
DisplayList:
FillRect@s1/e0 rect=[0,0 86x22] color=rgb(255, 255, 255)
-FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(128, 128, 128)
+FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(118, 118, 118)
DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0) inline_clips=[clip=[3,3 9x15]]
FillRect@s1/c0/e0 rect=[12,3 19x16] color=rgba(101, 2, 0, 0.8)
DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0) inline_clips=[clip=[12,3 19x15]]
@@ -36,7 +36,7 @@ AccumulatedVisualContext Tree:
DisplayList:
FillRect@s1/e0 rect=[0,0 86x22] color=rgb(255, 255, 255)
-FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(128, 128, 128)
+FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(118, 118, 118)
DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0) inline_clips=[clip=[3,3 9x15]]
FillRect@s1/c0/e0 rect=[12,3 19x16] color=rgba(16, 16, 16, 0.667)
DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0) inline_clips=[clip=[12,3 19x15]]
@@ -61,7 +61,7 @@ AccumulatedVisualContext Tree:
DisplayList:
FillRect@s1/e0 rect=[0,0 86x22] color=rgb(255, 255, 255)
-FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(128, 128, 128)
+FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(118, 118, 118)
DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0) inline_clips=[clip=[3,3 9x15]]
FillRect@s1/c0/e0 rect=[12,3 19x16] color=rgba(101, 2, 0, 0.8)
DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0) inline_clips=[clip=[12,3 19x15]]
@@ -87,7 +87,7 @@ AccumulatedVisualContext Tree:
DisplayList:
FillRect@s1/e0 rect=[0,0 86x22] color=rgb(255, 255, 255)
-FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(128, 128, 128)
+FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(118, 118, 118)
DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0)
PaintCaret@s1/c0/e0 rect=[22,3 1x16] color=rgb(0, 0, 0) should_blink=false
FillRoundedRectRing@s1/e0 rect=[-2,-2 90x26] widths=[2,2,2,2] color=rgb(61, 174, 233)
@@ -111,7 +111,7 @@ AccumulatedVisualContext Tree:
DisplayList:
FillRect@s1/e0 rect=[0,0 86x22] color=rgb(255, 255, 255)
-FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(128, 128, 128)
+FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(118, 118, 118)
DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0)
DrawLine@s1/e0 from=[81,19] to=[83,17] color=rgba(255, 255, 255, 0.392) thickness=1 style=Solid
DrawLine@s1/e0 from=[80,19] to=[83,16] color=rgba(0, 0, 0, 0.392) thickness=1 style=Solid
@@ -133,7 +133,7 @@ AccumulatedVisualContext Tree:
DisplayList:
FillRect@s1/e0 rect=[0,0 86x22] color=rgb(255, 255, 255)
-FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(128, 128, 128)
+FillRoundedRectRing@s1/e0 rect=[0,0 86x22] widths=[1,1,1,1] color=rgb(118, 118, 118)
DrawGlyphRun@s1/c0/e0 rect=[3,3 28x16] translation=[3,15.796875] color=rgb(0, 0, 0)
PaintCaret@s1/c0/e0 rect=[22,3 1x16] color=rgb(0, 0, 0) should_blink=false
FillRoundedRectRing@s1/e0 rect=[-2,-2 90x26] widths=[2,2,2,2] color=rgb(61, 174, 233)
diff --git a/Tests/LibWeb/Text/expected/display_list/textarea-caret.txt b/Tests/LibWeb/Text/expected/display_list/textarea-caret.txt
index b472a7bdb3c..f6ea32c92e1 100644
--- a/Tests/LibWeb/Text/expected/display_list/textarea-caret.txt
+++ b/Tests/LibWeb/Text/expected/display_list/textarea-caret.txt
@@ -9,7 +9,7 @@ AccumulatedVisualContext Tree:
DisplayList:
FillRect@s1/e0 rect=[8,8 106x32] color=rgb(255, 255, 255)
-FillRoundedRectRing@s1/e0 rect=[8,8 106x32] widths=[1,1,1,1] color=rgb(128, 128, 128)
+FillRoundedRectRing@s1/e0 rect=[8,8 106x32] widths=[1,1,1,1] color=rgb(118, 118, 118)
DrawGlyphRun@s1/c0/e0 rect=[11,11 30x13] translation=[11,21.390625] color=rgb(0, 0, 0)
PaintCaret@s1/c0/e0 rect=[11,11 1x13] color=rgb(0, 0, 0) should_blink=false
FillRoundedRectRing@s1/e0 rect=[6,6 110x36] widths=[2,2,2,2] color=rgb(61, 174, 233)
diff --git a/Tests/LibWeb/Text/expected/meta-color-scheme-invalidates-style.txt b/Tests/LibWeb/Text/expected/meta-color-scheme-invalidates-style.txt
index a6139e92fdd..2eb429b94e2 100644
--- a/Tests/LibWeb/Text/expected/meta-color-scheme-invalidates-style.txt
+++ b/Tests/LibWeb/Text/expected/meta-color-scheme-invalidates-style.txt
@@ -1,2 +1,2 @@
Before: rgb(0, 0, 0)
-After: rgb(235, 235, 235)
+After: rgb(255, 255, 255)