text-selection has too much height in spans with relative positions

35 views
Skip to first unread message

Milan Hauth

unread,
Dec 14, 2025, 10:35:45 AM (2 days ago) Dec 14
to Chromium-discuss
minimal example:

```html
<div>
 <span>1</span>
 <span style="position: relative; top: 2em">2</span>
</div>
```


complex example:


reproduce:
select text in spans with relative positions

actual:
text-selection highlight has too much height
above the selected text
in spans with relative positions.
the text-selection highlight
starts at the relative position y=0

expected:
text-selection highlight should have the same height
as with selected text in spans with absolute positions

this fails in chrome 137.0.7151.119
this works in firefox 139.0.4-1

use case:
EPUB-FXL = fixed-layout EPUB

Reply all
Reply to author
Forward
0 new messages