1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:18:12 +00:00

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.
This commit is contained in:
Andreas Kling 2020-12-15 20:48:16 +01:00
parent 17c529e6c5
commit ef61430738

View file

@ -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);
}