Closed Bug 1826312 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 39357 - Round replaced intrinsic width/height to nearest LayoutUnit

Categories

(Core :: SVG, task, P4)

task

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Fredrik Söderquist <fs@opera.com> wrote:

Round replaced intrinsic width/height to nearest LayoutUnit

This gives a better error bound, and is especially beneficial in cases
where the float number is a fairly small epsilon away from an integer.
Like 4.9999986 in the bug in question.

Pixel_SVGHuge has a height of 2000pt, which is rounded to the closer
LayoutUnit (reducing the error from ~0.01 to ~0.005).

Bug: 1392140
Change-Id: Ibf76f7ff4870ec93a9442771b70d28bd6889c923

Reviewed-on: https://chromium-review.googlesource.com/4055723
WPT-Export-Revision: 528d5698ade6f7b8ec96cd241859d2bb0a9b45fe

Component: web-platform-tests → SVG
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

FAIL: 1

Safari

FAIL: 1

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2369358a6c3d [wpt PR 39357] - Round replaced intrinsic width/height to nearest LayoutUnit, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
You need to log in before you can comment on or make changes to this bug.