8000 CSS:Tests: Fix tests & support tests under CSS Zoom (3.x version) by mgol · Pull Request #5496 · jquery/jquery · GitHub
[go: up one dir, main page]

Skip to content

CSS:Tests: Fix tests & support tests under CSS Zoom (3.x version) #5496

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

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

mgol
Copy link
Member
@mgol mgol commented May 29, 2024

Summary

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

4.x version: gh-5495

Checklist

@mgol mgol added Needs review Tests Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. labels May 29, 2024
@mgol mgol added this to the 3.7.2 milestone May 29, 2024
@mgol mgol self-assigned this May 29, 2024
mgol added a commit to mgol/jquery that referenced this pull request May 29, 2024
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 jquerygh-5489
Closes jquerygh-5496
Ref jquerygh-5495
@mgol mgol force-pushed the 3.x-firefox-zoom-gh-5489 branch from 7fb1e19 to f163b3d Compare May 29, 2024 12:30
mgol added a commit to mgol/jquery that referenced this pull request May 29, 2024
Firefox 126+ implements CSS zoom in a way it affects width computed style
very slightly (`100.008px` instead of `100px`); accept that difference.

Add a test for support tests resolving the same under CSS zoom & without one.

Fixes jquerygh-5489
Closes jquerygh-5495
Ref jquerygh-5496
mgol added a commit to mgol/jquery that referenced this pull request May 29, 2024
Firefox 126+ implements CSS zoom in a way it affects width computed style
very slightly (`100.008px` instead of `100px`); accept that difference.

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 jquerygh-5489
Closes jquerygh-5495
Ref jquerygh-5496
mgol added a commit to mgol/jquery that referenced this pull request May 29, 2024
Firefox 126+ implements CSS zoom in a way it affects width computed style
very slightly (`100.008px` instead of `100px`); accept that difference.

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 jquerygh-5489
Closes jquerygh-5495
Ref jquerygh-5496
@mgol mgol changed the title Tests: Account for small differences in width under zoom in Firefox CSS:Tests: Fix tests & support tests under CSS Zoom May 29, 2024
@mgol mgol added the CSS label May 29, 2024
mgol added a commit to mgol/jquery that referenced this pull request May 29, 2024
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 jquerygh-5489
Closes jquerygh-5496
Ref jquerygh-5495
@mgol mgol force-pushed the 3.x-firefox-zoom-gh-5489 branch from f163b3d to 5b11c77 Compare May 29, 2024 12:49
@mgol
Copy link
Member Author
mgol commented May 29, 2024

Size diffs:

3.x-stable @37bded35229d4753e2f05290e9304011ea2cbade
   raw     gz Filename
   +33     +1 dist/jquery.min.js
   +33     -1 dist/jquery.slim.min.js

@mgol mgol requested a review from gibson042 May 29, 2024 15:23
mgol added a commit to mgol/jquery that referenced this pull request May 29, 2024
Firefox 126+ implements CSS zoom in a way it affects width computed style
very slightly (`100.008px` instead of `100px`); accept that difference.

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 jquerygh-5489
Closes jquerygh-5495
Ref jquerygh-5496
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 jquerygh-5489
Closes jquerygh-5496
Ref jquerygh-5495
@mgol mgol force-pushed the 3.x-firefox-zoom-gh-5489 branch from 5b11c77 to 7c935e2 Compare May 29, 2024 16:37
@mgol mgol linked an issue May 29, 2024 that may be closed by this pull request
@mgol mgol changed the title CSS:Tests: Fix tests & support tests under CSS Zoom CSS:Tests: Fix tests & support tests under CSS Zoom (3.x version) May 29, 2024
@timmywil timmywil removed the Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. label Jun 3, 2024
mgol added a commit that referenced this pull request Jun 3, 2024
Firefox 126+ implements CSS zoom in a way it affects width computed style
very slightly (`100.008px` instead of `100px`); accept that difference.

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-5495
Ref gh-5496
@mgol mgol merged commit 29a9030 into jquery:3.x-stable Jun 3, 2024
11 checks passed
@mgol mgol deleted the 3.x-firefox-zoom-gh-5489 branch June 3, 2024 16:15
@mgol mgol removed the Needs review label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Fix CSS test issues in Firefox coming from CSS zoom support
2 participants
0