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

LibHTML: Implement basic support for "text-decoration: underline"

This commit is contained in:
Andreas Kling 2019-09-28 22:31:41 +02:00
parent 62cbaa74f3
commit 8271ad40a5
2 changed files with 7 additions and 1 deletions

View file

@ -63,7 +63,7 @@ StyleProperties StyleResolver::resolve_style(const Element& element, const Style
if (parent_properties) {
parent_properties->for_each_property([&](const StringView& name, auto& value) {
// TODO: proper inheritance
if (name.starts_with("font") || name == "white-space" || name == "color")
if (name.starts_with("font") || name == "white-space" || name == "color" || name == "text-decoration")
style_properties.set_property(name, value);
});
}