Page MenuHomePhabricator

Bounding box for clipped comment node is not clipped
Open, Needs TriagePublic

Assigned To
None
Authored By
Esanders
Aug 14 2025, 11:00 AM
Referenced Files
F65750684: image.png
Aug 14 2025, 11:00 AM
F65750682: image.png
Aug 14 2025, 11:00 AM
F65750679: image.png
Aug 14 2025, 11:00 AM
Subscribers

Description

CE comment nodes render the comment contents with ellipsis clipping:

image.png (259×462 px, 26 KB)

if we select across this comment:

image.png (105×852 px, 18 KB)

then generate a fake selection (e.g. by opening the toolbar) the fake selection is much wider - suggesting it is not respecting the text clipping:

image.png (105×852 px, 20 KB)

Event Timeline

This appears to be a limitation of Range#getClientRects, when selecting across text in an overflow:hidden container.