We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
jsdom mocks getBoundingClientRect to return a DOMRect with all values set to 0:
getBoundingClientRect
document.body.getBoundingClientRect() // => { bottom: 0, height: 0, left: 0, right: 0, top: 0, width: 0 }
However, it's missing the x and y parameters, which are defined in the MDN for DOMRect and supported in all modern browsers
x
y
I've made a pull request to add the parameters
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
jsdom mocks
getBoundingClientRect
to return a DOMRect with all values set to 0:However, it's missing the
x
andy
parameters, which are defined in the MDN for DOMRect and supported in all modern browsersI've made a pull request to add the parameters
The text was updated successfully, but these errors were encountered: