There was an error while loading. Please reload this page.
Using .height() is rounding the value
.height()
having rounded height produces misaligned objects
V3.5: V3.6/V3.7:
Same code, just different versions of jquery V3.7.0: https://jsfiddle.net/6jqh4pmb/1/ (fails) V3.6.4: https://jsfiddle.net/6jqh4pmb/2/ (fails) V3.5.1: https://jsfiddle.net/6jqh4pmb/3/ (This is working fine)
Using
.height()is rounding the valueget the real height
the browser shows the real height but jquery get it rounded
chrome 114.0.5735.110
opera 99.0.4788.65
chromium:113.0.5672.127
edge 114.0.1823.43
firefox 103.0.2
Description
having rounded height produces misaligned objects
V3.5:


V3.6/V3.7:
Link to test case
Same code, just different versions of jquery
V3.7.0: https://jsfiddle.net/6jqh4pmb/1/ (fails)
V3.6.4: https://jsfiddle.net/6jqh4pmb/2/ (fails)
V3.5.1: https://jsfiddle.net/6jqh4pmb/3/ (This is working fine)