-
Notifications
You must be signed in to change notification settings - Fork 28
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
[math functions] Change mod() math function subtest #335
Comments
@danielsakhapov can you link to a draft CL / PR for this change? |
Thanks @danielsakhapov! That's exported at https://github.com/web-platform-tests/wpt/pull/40008/files. @jgraham can you handle this proposal for Gecko? |
This is fine (the math looks correct either way), but a bit surprising diving 75 / 10 produces rounding errors while 75 / 15 doesn't. |
Yeah, this seems fine to me. Change makes sense, and Firefox still passes the test after the change locally for me, so we're not e.g. trading between different implementation float rounding edge cases. :) |
I noticed that one too, yeah. It looks like our float-rounding error goes away if I change @danielsakhapov would you mind making that edit while you're here, as a ridealong to your existing change, sharing the same justification? i.e. changing line 131 from...
...to:
|
@dholbert Sure thing, done! Thanks everyone! |
Fail is due to the rounding error, as the test checks the mod() function and not the rounding behaviour, the test is changed to pass. Resolved here: web-platform-tests/interop#335 Bug: 1407473 Change-Id: Ic7776e3a131348140c56ebe0e79e2dcea3282790
Fail is due to the rounding error, as the test checks the mod() function and not the rounding behaviour, the test is changed to pass. Resolved here: web-platform-tests/interop#335 Bug: 1407473 Change-Id: Ic7776e3a131348140c56ebe0e79e2dcea3282790 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4529482 Reviewed-by: Steinar H Gunderson <sesse@chromium.org> Commit-Queue: Daniil Sakhapov <sakhapov@chromium.org> Cr-Commit-Position: refs/heads/main@{#1149045}
Fail is due to the rounding error, as the test checks the mod() function and not the rounding behaviour, the test is changed to pass. Resolved here: web-platform-tests/interop#335 Bug: 1407473 Change-Id: Ic7776e3a131348140c56ebe0e79e2dcea3282790 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4529482 Reviewed-by: Steinar H Gunderson <sesse@chromium.org> Commit-Queue: Daniil Sakhapov <sakhapov@chromium.org> Cr-Commit-Position: refs/heads/main@{#1149045}
Fail is due to the rounding error, as the test checks the mod() function and not the rounding behaviour, the test is changed to pass. Resolved here: web-platform-tests/interop#335 Bug: 1407473 Change-Id: Ic7776e3a131348140c56ebe0e79e2dcea3282790 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4529482 Reviewed-by: Steinar H Gunderson <sesse@chromium.org> Commit-Queue: Daniil Sakhapov <sakhapov@chromium.org> Cr-Commit-Position: refs/heads/main@{#1149045}
… mod(), a=testonly Automatic update from web-platform-tests Change failing WPT test for css function mod() Fail is due to the rounding error, as the test checks the mod() function and not the rounding behaviour, the test is changed to pass. Resolved here: web-platform-tests/interop#335 Bug: 1407473 Change-Id: Ic7776e3a131348140c56ebe0e79e2dcea3282790 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4529482 Reviewed-by: Steinar H Gunderson <sesse@chromium.org> Commit-Queue: Daniil Sakhapov <sakhapov@chromium.org> Cr-Commit-Position: refs/heads/main@{#1149045} -- wpt-commits: 604996f06850cec8178d60c47b273c03fbf0aec2 wpt-pr: 40008
… mod(), a=testonly Automatic update from web-platform-tests Change failing WPT test for css function mod() Fail is due to the rounding error, as the test checks the mod() function and not the rounding behaviour, the test is changed to pass. Resolved here: web-platform-tests/interop#335 Bug: 1407473 Change-Id: Ic7776e3a131348140c56ebe0e79e2dcea3282790 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4529482 Reviewed-by: Steinar H Gunderson <sesse@chromium.org> Commit-Queue: Daniil Sakhapov <sakhapov@chromium.org> Cr-Commit-Position: refs/heads/main@{#1149045} -- wpt-commits: 604996f06850cec8178d60c47b273c03fbf0aec2 wpt-pr: 40008
… mod(), a=testonly Automatic update from web-platform-tests Change failing WPT test for css function mod() Fail is due to the rounding error, as the test checks the mod() function and not the rounding behaviour, the test is changed to pass. Resolved here: web-platform-tests/interop#335 Bug: 1407473 Change-Id: Ic7776e3a131348140c56ebe0e79e2dcea3282790 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4529482 Reviewed-by: Steinar H Gunderson <sessechromium.org> Commit-Queue: Daniil Sakhapov <sakhapovchromium.org> Cr-Commit-Position: refs/heads/main{#1149045} -- wpt-commits: 604996f06850cec8178d60c47b273c03fbf0aec2 wpt-pr: 40008 UltraBlame original commit: ce095f1fd991d8732a33f06685ba017ca4576f51
… mod(), a=testonly Automatic update from web-platform-tests Change failing WPT test for css function mod() Fail is due to the rounding error, as the test checks the mod() function and not the rounding behaviour, the test is changed to pass. Resolved here: web-platform-tests/interop#335 Bug: 1407473 Change-Id: Ic7776e3a131348140c56ebe0e79e2dcea3282790 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4529482 Reviewed-by: Steinar H Gunderson <sessechromium.org> Commit-Queue: Daniil Sakhapov <sakhapovchromium.org> Cr-Commit-Position: refs/heads/main{#1149045} -- wpt-commits: 604996f06850cec8178d60c47b273c03fbf0aec2 wpt-pr: 40008 UltraBlame original commit: ce095f1fd991d8732a33f06685ba017ca4576f51
… mod(), a=testonly Automatic update from web-platform-tests Change failing WPT test for css function mod() Fail is due to the rounding error, as the test checks the mod() function and not the rounding behaviour, the test is changed to pass. Resolved here: web-platform-tests/interop#335 Bug: 1407473 Change-Id: Ic7776e3a131348140c56ebe0e79e2dcea3282790 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4529482 Reviewed-by: Steinar H Gunderson <sessechromium.org> Commit-Queue: Daniil Sakhapov <sakhapovchromium.org> Cr-Commit-Position: refs/heads/main{#1149045} -- wpt-commits: 604996f06850cec8178d60c47b273c03fbf0aec2 wpt-pr: 40008 UltraBlame original commit: ce095f1fd991d8732a33f06685ba017ca4576f51
Test List
https://wpt.fyi/css/css-values/round-mod-rem-computed.html
Rationale
Change mod(-18px,100% / 15) to mod(-18px,100% / 10) and expected value from to 2px 4.5px. As Chrome doesn't pass due to some rounding of layout units. Probably Firefox would like to change mod(-18%,5%) also, as they fail for the same reason.
The text was updated successfully, but these errors were encountered: