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
Implement additional logic in DOMString::set_best_representation_of_the_floating_point_number #32272
Conversation
…_of_the_floating_point_number in order to correct some failing tests related to -0 values.
|
||
[progress.max: IDL set to 0] | ||
expected: FAIL | ||
|
||
[progress.max: IDL set to 1e-10] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there are even more tests that we could fix with this (look for IDL set to x
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you - I did have a longer look into those. I think there's an edge case in our implementation of is_valid_floating_point_number_string
that fails for 1.e2
. I'm pretty sure this one should be valid, but our regex enforces that a digit appears after the decimal point.
Edit - I was wrong, it's fine 👍
🔨 Triggering try run (#9058770016) for Linux WPT |
Test results for linux-wpt-layout-2020 from try job (#9058770016): Flaky unexpected result (9)
Stable unexpected results that are known to be intermittent (15)
|
Test results for linux-wpt-layout-2013 from try job (#9058770016): Flaky unexpected result (11)
Stable unexpected results that are known to be intermittent (11)
|
✨ Try run (#9058770016) succeeded. |
This corrects some failing tests related to "-0.0" values for the
meter
element, as well as updates input number and range elements - these were not failing similar tests, it appears that the default fallback was accounting for -0.0 values.There are also some fixes to the
progress
element where it was mishandling negative values formax
.See #32269 for additional context.
./mach build -d
does not report any errors./mach test-tidy
does not report any errors