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
Notes:
sideshowbarker
2024-07-19 00:48:33 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ef614307388
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
Reference in a new issue