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:
parent
17c529e6c5
commit
ef61430738
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue