LibWeb: Respect text-underline-offset when rendering underlines

This commit is contained in:
Callum Law 2025-09-12 12:21:16 +12:00 committed by Tim Ledbetter
commit 815e77c04d
Notes: github-actions[bot] 2025-09-12 06:08:11 +00:00
11 changed files with 226 additions and 2 deletions

View file

@ -608,6 +608,7 @@ void NodeWithStyle::apply_style(CSS::ComputedProperties const& computed_style)
computed_values.set_text_justify(computed_style.text_justify());
computed_values.set_text_overflow(computed_style.text_overflow());
computed_values.set_text_rendering(computed_style.text_rendering());
computed_values.set_text_underline_offset(computed_style.text_underline_offset());
if (auto text_indent = computed_style.length_percentage(CSS::PropertyID::TextIndent, *this, CSS::ComputedProperties::ClampNegativeLengths::No); text_indent.has_value())
computed_values.set_text_indent(text_indent.release_value());