From ef614307388891a58189d5639cb06be802f56d79 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 15 Dec 2020 20:48:16 +0100 Subject: [PATCH] LibWeb: Update text-decoration hack to use text-decoration-line We have a hack that propagates text-decoration-line through inheritance even though it's not an inherited property. Once we implement the CSS cascade properly we can stop doing this. --- Libraries/LibWeb/CSS/StyleResolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/CSS/StyleResolver.cpp b/Libraries/LibWeb/CSS/StyleResolver.cpp index 42c56ba2c9..202fa85b31 100644 --- a/Libraries/LibWeb/CSS/StyleResolver.cpp +++ b/Libraries/LibWeb/CSS/StyleResolver.cpp @@ -146,7 +146,7 @@ bool StyleResolver::is_inherited_property(CSS::PropertyID property_id) // FIXME: This property is not supposed to be inherited, but we currently // rely on inheritance to propagate decorations into line boxes. - inherited_properties.set(CSS::PropertyID::TextDecoration); + inherited_properties.set(CSS::PropertyID::TextDecorationLine); } return inherited_properties.contains(property_id); }