You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stderr | index.test.tsx > floatingStyles no transform
Warning: `NaN` is an invalid value for the `left` css style property.
at div
at App (/Users/user/Code/floating-ui/packages/react-dom/test/index.test.tsx:680:60)
I made a small patch in the fork repo and re-run the tests, the calculation results are as expected.
Describe the bug
Missing
clientTop
andclientLeft
in elements.clientWidth
andclientHeight
exist, butclientTop
andclientLeft
do not.happy-dom/packages/happy-dom/src/nodes/html-element/HTMLElement.ts
Lines 29 to 30 in bcb0225
To Reproduce
Here's an example.
https://github.com/floating-ui/floating-ui/compare/master...konomae:floating-ui:happy-dom-repro?expand=1
floating-ui
repoSince
clientTop
andclientLeft
are missing, the calculation results in NaN.I made a small patch in the fork repo and re-run the tests, the calculation results are as expected.
Expected behavior
clientTop
andclientLeft
exist.NaN
Additional context
JSDOM returns
0
https://github.com/jsdom/jsdom/blob/a39e0ec4ce9a8806692d986a7ed0cd565ec7498a/Changelog.md?plain=1#L730
The text was updated successfully, but these errors were encountered: