diff --git a/Tests/LibWeb/Ref/reference/text-decoration-in-anonymous-wrapper-ref.html b/Tests/LibWeb/Ref/reference/text-decoration-in-anonymous-wrapper-ref.html
new file mode 100644
index 00000000000..e0f401333d9
--- /dev/null
+++ b/Tests/LibWeb/Ref/reference/text-decoration-in-anonymous-wrapper-ref.html
@@ -0,0 +1,10 @@
+
+
+
strike
diff --git a/Tests/LibWeb/Ref/text-decoration-in-anonymous-wrapper.html b/Tests/LibWeb/Ref/text-decoration-in-anonymous-wrapper.html
new file mode 100644
index 00000000000..8f99c915c26
--- /dev/null
+++ b/Tests/LibWeb/Ref/text-decoration-in-anonymous-wrapper.html
@@ -0,0 +1,14 @@
+
+
+
strike
diff --git a/Tests/LibWeb/Screenshot/images/css-background-clip-text.png b/Tests/LibWeb/Screenshot/images/css-background-clip-text.png
index 8c5da2d64cc..5a439c1f1b3 100644
Binary files a/Tests/LibWeb/Screenshot/images/css-background-clip-text.png and b/Tests/LibWeb/Screenshot/images/css-background-clip-text.png differ
diff --git a/Userland/Libraries/LibWeb/Layout/Node.cpp b/Userland/Libraries/LibWeb/Layout/Node.cpp
index fffae81ee66..6f9893d320a 100644
--- a/Userland/Libraries/LibWeb/Layout/Node.cpp
+++ b/Userland/Libraries/LibWeb/Layout/Node.cpp
@@ -975,6 +975,12 @@ JS::NonnullGCPtr
NodeWithStyle::create_anonymous_wrapper() const
{
auto wrapper = heap().allocate_without_realm(const_cast(document()), nullptr, computed_values().clone_inherited_values());
wrapper->mutable_computed_values().set_display(CSS::Display(CSS::DisplayOutside::Block, CSS::DisplayInside::Flow));
+
+ // NOTE: These properties are not inherited, but we still have to propagate them to anonymous wrappers.
+ wrapper->mutable_computed_values().set_text_decoration_line(computed_values().text_decoration_line());
+ wrapper->mutable_computed_values().set_text_decoration_thickness(computed_values().text_decoration_thickness());
+ wrapper->mutable_computed_values().set_text_decoration_color(computed_values().text_decoration_color());
+ wrapper->mutable_computed_values().set_text_decoration_style(computed_values().text_decoration_style());
return *wrapper;
}