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 0000000000000000000000000000000000000000..e0f401333d9f749e5d23ac48a18b8104439b72d8 --- /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 0000000000000000000000000000000000000000..8f99c915c26a1e25e1dd08cadea51cd0b4dcdfb3 --- /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 8c5da2d64ccafcd0813466f5f145f72654038ad5..5a439c1f1b3e36b60cdae1e37efa3ae7b4f5f046 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 fffae81ee66dee8c1ddfc46791811cb6882b9f5e..6f9893d320a000e4cd1383fbe7dae32161d7b326 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; }