You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rendered soft-hyphen glyph is excluded from selection highlight (skparagraph getRectsForRange skips hyphens) #189234
Follow-up from #185152 (soft-hyphen rendering, part of #18443).
When Hyphens.manual renders a hyphen glyph at a soft-hyphen line break, the glyph participates in the line's width and in coordinate hit-testing, but skparagraph's getRectsForRange deliberately skips the synthetic hyphen run:
So when a selection spans a soft-hyphen break, the visible hyphen is not included in the selection highlight, which can look surprising (the surrounding text is highlighted but the hyphen appears unselected).
The fix lives in skparagraph (include the hyphen run in getRectsForRange when renderSoftHyphens is enabled), so tracking it separately per the discussion on #185152 with @LongCatIsLooong and @Renzo-Olivares.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
Renzo-Olivares commentedon Aug 20, 2026
@flutter-zl bringing this issue to team-text-input since it is not web specific.
5 remaining items
flutter-triage-bot commentedon Aug 20, 2026
The
triaged-weblabel is irrelevant if there is noteam-weblabel orfyi-weblabel.Support soft hyphen (U+00AD) rendering with a Hyphens API (flutter#18…
[skparagraph] Include the rendered soft hyphen in getRectsForRange
dbebawy commentedon Oct 22, 2026
Fixed in Skia by https://skia-review.googlesource.com/c/skia/+/1396916, which rolled into Flutter in #194828. The Skia change includes tests for the selection boxes, including custom hyphen strings.
Support soft hyphen (U+00AD) rendering with a Hyphens API (flutter#18…
[skparagraph] Report a hit on the ellipsis or hyphen as upstream
github-actions commentedon Nov 5, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.