Closed Bug 1707621 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 28695 - Allow multiple equivalent representations for flex-{grow|shrink} computed values

Categories

(Core :: Layout: Flexbox, task, P4)

task

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 28695 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/28695
Details from upstream follow.

b'Sergio Villar Senin <svillar@igalia.com>' wrote:

Allow multiple equivalent representations for flex-{grow|shrink} computed values

Both Firefox and WebKit-based browsers report failures in flex-{grow|shrink}-computed.html tests because the way these engines serialize large float numbers is not exactly the same as the specified values. For example if authors use the 1e+06 notation they'll get 1000000 in return which is basically the same number but with a different notation.

The reason why it's like that is because (at least in the case of WebKit) once the value is parsed, the engine forgets about the original representation (the specified one) and when getComputedStyle() is called the engine just serializes an internal representation.

Component: web-platform-tests → Layout: Flexbox
Product: Testing → Core
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6dfba168e61d
[wpt PR 28695] - Allow multiple equivalent representations for flex-{grow|shrink} computed values, a=testonly
https://hg.mozilla.org/integration/autoland/rev/969c68415d6e
[wpt PR 28695] - Update wpt metadata, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.