mirror of
https://github.com/servo/servo
synced 2026-05-09 08:32:31 +02:00
This PR modifies the text layout in such a way that text carets can render on empty lines (other than the first if the textarea is empty). Zero-length segments are added to support caret rendering. The last line, if it is without content, does not currently render a caret correctly This corresponds to cases 0, 1, and 3 in #41338 Testing: WPT subset `tests/wpt/tests/css/css-text/` ran as expected, one internal WPT test was added Fixes: Partially addresses https://github.com/servo/servo/issues/41338 --------- Signed-off-by: Freya Arbjerg <git@arbjerg.dev> Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>