Text does not scale with selection box/cursor in Chrome 96+
See original GitHub issueDescribe the bug Scaling text starting in Chrome 96 breaks (currently Beta). The bounding text contents does not match the selection box and the selection box does not track the cursor.
To Reproduce Steps to reproduce the behavior:
- Go to https://svgedit.netlify.app/editor/index.html (or any version of SVG-Edit)
- Create text
- Scale text
- See error
Expected behavior It should work like Chrome 95 or Firefox where the text fits selection box.
SVG-Edit environment
<svg width="640" height="480" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit-->
<g class="layer">
<title>Layer 1</title>
<text fill="#000000" font-family="Serif" font-size="24" id="svg_2" stroke="#000000" stroke-width="0" text-anchor="middle" x="109" xml:space="preserve" y="108">test</text>
</g>
</svg>
- Version: 5, 6, 7 (maybe even 3+)
Desktop:
- OS: Windows
- Browser Chrome
- Version 96+
Screenshots

Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
There is a text cursor bug in my chrome that causes the ...
There is an annoying bug in my chrome that causes a blinking cursor also known as "the text cursor," or "the insertion point"...
Read more >659642 - Mouse cursor alignment wrong on extension popup ...
Chrome extension popups work just fine on that screen. - Secondary display is 1920x1080 resolution with 100% scaling. Have the mouse issue here...
Read more >Unable to change mouse cursor size · Issue #417 - GitHub
Open Settings. Select Universal Access. Select Cursor Size and pick a different size.
Read more >Cursor size does not match text size when user is typing in input
The actual text itself ends up being fine after the user exits the input (doesn't get cut off).
Read more >What's New In DevTools (Chrome 96)
The copy CSS and edit as text experience are restored for CSS properties ... Enable CSS length authoring tools in the Styles pane...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

It’s fixed now in Canary
I close this as it is related to a Chrome issue. I also had to skip the test as it passed locally but on on the CI.