question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Text does not scale with selection box/cursor in Chrome 96+

See original GitHub issue

Describe 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:

  1. Go to https://svgedit.netlify.app/editor/index.html (or any version of SVG-Edit)
  2. Create text
  3. Scale text
  4. 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 svgedit-chrome-96-scale-issue

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
smagnetizecommented, Nov 8, 2021

It’s fixed now in Canary

0reactions
jfhenoncommented, Nov 7, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found