]> source.dussan.org Git - jquery.git/commit
CSS:Tests: Fix tests & support tests under CSS Zoom (3.x version)
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 3 Jun 2024 16:15:39 +0000 (18:15 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Jun 2024 16:15:39 +0000 (18:15 +0200)
commit29a9030c78a02d5c3b41b66283fe7b5325ac11a0
tree2b68579848e3ead3d8586cc9e9306c2c0cc99faa
parentb6f53def96d31d07e16eb40c290fcf1705d52156
CSS:Tests: Fix tests & support tests under CSS Zoom (3.x version)

Firefox 126+ implements CSS zoom in a way it affects width computed style
very slightly (`100.008px` instead of `100px`); accept that difference.

Also, skip the width setter under zoom test in Firefox 126 completely - that
version has CSS zoom affecting `offsetWidth` values. This has been fixed in
Firefox 127 so it's not worth working around it.

Add a test for support tests resolving the same under CSS zoom & without one.
That test uncovered Chrome failing the `reliableTrDimensions` support test
under zoom; the test has been fixed.

Fixes gh-5489
Closes gh-5496
Ref gh-5495
src/css/support.js
test/data/support/zoom.html [new file with mode: 0644]
test/unit/css.js
test/unit/support.js