mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
LibWeb: Compute text-decoration-thickness
values
This commit is contained in:
parent
0f7156ed81
commit
b6b116d5f2
Notes:
sideshowbarker
2024-07-17 17:52:18 +09:00
Author: https://github.com/krkk
Commit: b6b116d5f2
Pull-request: https://github.com/SerenityOS/serenity/pull/12915
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 16 additions and 3 deletions
|
@ -430,6 +430,8 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style)
|
|||
// we just manually grab the value from `color`. This makes it dependent on `color` being
|
||||
// specified first, so it's far from ideal.
|
||||
computed_values.set_text_decoration_color(specified_style.color_or_fallback(CSS::PropertyID::TextDecorationColor, *this, computed_values.color()));
|
||||
if (auto maybe_text_decoration_thickness = specified_style.length_percentage(CSS::PropertyID::TextDecorationThickness); maybe_text_decoration_thickness.has_value())
|
||||
computed_values.set_text_decoration_thickness(maybe_text_decoration_thickness.release_value());
|
||||
|
||||
computed_values.set_z_index(specified_style.z_index());
|
||||
computed_values.set_opacity(specified_style.opacity());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue