Closed Bug 1700743 Opened 5 years ago Closed 4 years ago

WPT Failures in flex-grow-computed.html and flex-shrink-computed.html

Categories

(Core :: Layout: Flexbox, task)

task

Tracking

()

RESOLVED FIXED

People

(Reporter: dholbert, Unassigned)

References

(Blocks 1 open bug)

Details

WPT tests flex-grow-computed.html and flex-shrink-computed.html fail in Firefox (and in Safari):
https://wpt.fyi/results/css/css-flexbox/parsing/flex-grow-computed.html?label=master&label=experimental&aligned

https://wpt.fyi/results/css/css-flexbox/parsing/flex-shrink-computed.html?label=master&label=experimental&aligned

It looks like the tests are hardcoded to expect scientific notation for some values that they read back, and we just return the regular decimal value instead. e.g.:

assert_equals: expected "2.34e+06" but got "2340000"

This seems likely to be just a buggy/unjustified expectation that's hardcoded into the test, in which case the test needs fixing.

FWIW, this test is included in the compat2021 test set at
https://github.com/Ecosystem-Infra/wpt-results-analysis/blob/master/compat-2021/css-flexbox-tests.txt

Blocks: compat2021

Good news: the tests were fixed upstream to allow decimal values like 2340000, in at https://github.com/web-platform-tests/wpt/commit/935bbb95a6cc75aa25fb9c2ae9c63e457dc23453

We pass the amended tests.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.