leader-line js lines appears misaligned on Firefox
06:28 29 Jul 2026

I am using leader-line JS in my web-app. I tested the implementation on Firefox browser and it was working last week perfectly and all of a sudden yesterday when I opened the page the lines appeared misaligned.

To cross-check whether it is a browser-specific issue I opened the page in Google Chrome and the lines appeared perfect.

I searched for the problem and tried whatever solutions I found but none of them helped.

Then it clicked to open the demo page https://anseki.github.io/leader-line/ itself on Firefox and I found the lines in the demo misaligned. That same demo worked perfectly on Google Chrome.

I also checked opening the demo page on Firefox on my Android 16 phone and in it too the lines in the demo appeared misaligned. That same demo worked perfectly on Google Chrome. But again that same demo worked perfectly on Google Chrome on phone.

I also tried installing Epiphany browser on my Ubuntu desktop and on it too the demo worked perfectly.

I also tried downloading a tar file from Firefox website and independently opening `firefox` binary but on it too the demo appeared misaligned.

I also tried creating a new profile on my existing Firefox installation on desktop but on that too same misalignment issue.

Based on above findings I suspect the issue to be with Firefox's internals which is causing the SVG rendering misalignment. And it has to be some recent update which has caused this but I don't know how to isolate that update to verify my suspect.

I am on Ubuntu Budgie.Its version and the browser's versions are shared below

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.3 LTS
Release:    24.04
Codename:   noble

$ firefox --version
Mozilla Firefox 153.0

$ google-chrome --version
Google Chrome 149.0.7827.200

$ epiphany --version
Web 46.5

The screenshots from different browsers can be found at https://gist.github.com/jiggneshhgohel/05d8aae99326b5ec6f38e3f7956d796a?permalink_comment_id=6284509#gistcomment-6284509 .


google-chrome svg firefox ubuntu-24.04 leader-line-js