LibWeb: Implement text-decoration-skip-ink painting

Use Skia's SkTextBlob::getIntercepts() to find where glyph outlines
cross the underline/overline band, then split the decoration line into
segments with gaps around those intersections.
This commit is contained in:
Jelle Raaijmakers
2026-03-24 15:59:43 +01:00
committed by Tim Ledbetter
parent 18f01b2c4b
commit 3d2571b46e
Notes: github-actions[bot] 2026-03-26 12:16:57 +00:00
11 changed files with 185 additions and 21 deletions

View File

@@ -703,6 +703,7 @@ void NodeWithStyle::apply_style(CSS::ComputedProperties const& computed_style)
computed_values.set_image_rendering(computed_style.image_rendering());
computed_values.set_pointer_events(computed_style.pointer_events());
computed_values.set_text_decoration_line(computed_style.text_decoration_line());
computed_values.set_text_decoration_skip_ink(computed_style.text_decoration_skip_ink());
computed_values.set_text_decoration_style(computed_style.text_decoration_style());
computed_values.set_text_transform(computed_style.text_transform());