-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong bounding boxes on Firefox since Release 82 #2390
Comments
This is pretty much a Firefox issue, because in Safari and Chrome everything works fine and as expected. |
This could be related to issue humdrum-tools/verovio-humdrum-viewer#600 where Firefox was not giving the correct bounding box information for a system. In this case it was a bug in Firefox and I had to adapt my code to compensate. I have been getting an unrelated strange SVG behavior in Chrome which I will report soon... |
As a workaround |
Fixes wrong values for getBoundingClientRect in firefox https://bugzilla.mozilla.org/show_bug.cgi?id=530985 rism-digital/verovio#2390
Describe the problem
Interacting with the Verovio rendered SVG causes problems, since the bounding boxes (
Element.getBoundingClientRect()
andSVGGraficsElement.getBBox()
) are sized up to the respective right and bottom bound of the current SVG.This problem only occurs with Firefox since Release 82 (Current Release: 93)
To Reproduce
Steps to reproduce the behavior:
document.querySelector(".measure")
, ordocument.querySelector(".layer)
Expected behavior
The example statements should only display the bounding box visually displayed for the element (measure, staff, etc.)
Verovio information
Environment information (as appropriate)
Screenshots
Displayed Bounding Box in Firefox 93 after executing
document.querySelector(".staff")
(first staff) in browser consoleAdditional context
This problem was already reported to mozilla 10 Months ago.
It is not yet clear if it is a problem with Verovio or with Firefox
The text was updated successfully, but these errors were encountered: