Closed Bug 2073594 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62775 - [HiC] Correctly apply canvas scaling to ElementImage.(width|height)

Categories

(Core :: Graphics: Canvas2D, task, P4)

task

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

Stefan Zager <szager@chromium.org> wrote:

[HiC] Correctly apply canvas scaling to ElementImage.(width|height)

This makes the width and height values equal to the internal default
values for the dwidth and dheight parameters to drawElementImage, which
obey the invariant: drawElementImage with default dwidth/dheight and no
transform applied to the canvas context should draw the element with the
same on-screen proportions as it would appear were the element placed
outside the canvas with identical computed style.

Bug: 456097302
Change-Id: I3b268ea39a94e8b8236f685f8fd5916404863c26

Reviewed-on: https://chromium-review.googlesource.com/8423113
WPT-Export-Revision: 7ea7603eebc62e4f8ef93e4e257fc0f2aa0fec9e

Component: web-platform-tests → Graphics: Canvas2D
Product: Testing → Core
Attached file Notable wpt changes —

CI Results

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

Total 135 tests and 5 subtests

Status Summary

Firefox

OK : 125
PASS : 12
FAIL : 7[GitHub] 208[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 1
ERROR : 2[GitHub] 7[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
NOTRUN : 1[GitHub] 18[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 2
FAIL : 8

Safari

FAIL : 7
ERROR : 2
NOTRUN : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: