arrow-down arrow at-sign bug check checkbox-checked checkbox-unchecked svg-checkmark chevron-right chevrons-right circle-down circle-left circle-right circle-up cloud2 svg-cross2 download download external-link filter github hash home leaf leaf left link-2 log-in log-out mail menu message-square minus plus radio-checked radio-checked2 radio-unchecked search settings spinner8 target twitter up upload-2 user users warning x zap
  • Home
  • Report a bug
  • Contribute
  • All issues
  • Login

URL: https://users.sch.gr/kodulis/svg_tspan_test.html

Browser / Version: Firefox 124.0
Operating System: Windows 10
Tested Another Browser: Yes Chrome

Problem type: Something else
Description: When mouse is clicking or moving over an "svg tspan" element, the offset coordinates differ from the corresponding if it was just an "svg text" element. This inconsistency does not exist on Chrome, Opera and Edge.
Steps to Reproduce:
I am using Firefox browser version 124.0.2 (64-bit) on a desktop computer.

When mouse is clicking or moving over an "svg tspan" element, the "event.offsetX" and "event.offsetY" coordinates differ from the corresponding if it was just an "svg text" element.
In contrary, the "e.clientX" and "e.clientY" coordinates are the same.

This is not happening on Chrome, Opera and Edge. All these browsers report the same coordinates regardless "tspan" or "text".

I can't say which behavior is correct and which is wrong. But there is an inconsistency.

I made a test page to see the problem.
If you click, for example, on T of the text the offsetX coordinate differs from that if you click on T of the tspan. This is not happening on other browsers.

View the screenshot Screenshot
Browser Configuration
  • None

From webcompat.com with ❤️

Please login to edit issues.

View issue on Github

Shortcut: Press l on your keyboard to open the label editor. Shortcut: Press g on your keyboard to be taken to the GitHub view of this page.
Needs Diagnosis
#135876

users.sch.gr - When mouse is clicking or moving over an "svg tspan" element, the offset c

Opened: 2024-04-13
Reporter: webcompat-bot
Comments: 2
  • Home
  • List of issues
  • About
  • Contribute
  • Contact
  • Privacy Policy
  • Terms of Service
  • Code of Conduct