[Webkit-unassigned] [Bug 202457] imported/w3c/web-platform-tests/2dcontext/drawing-images-to-the-canvas/drawimage_canvas.html fails some tests on test scenario 9
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun May 12 21:54:45 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=202457
--- Comment #4 from Karl Dubost <karlcow at apple.com> ---
All the tests failing are in the negative coordinates
but not for all colors. Only for
Blue: [70,70], [70,99], [99,70], [82,82]
Black: [84,99], [99,84], [99,99] ..........but not [84,84]
Red: [69,69] ............................but not [0,69], [69, 0]
// Negative coordinates of the source rectangle.
// The source area is clipped to fit the source image and the destination area
// is clipped in the same proportion. In this specific test:
// - source is clipped by 20 from top and left.
// - destination will get proportionally clipped by 50 from top and left as we
// are scaling the source image 2.5 times.
// - the rect will be drawn from 70,70 to 100,100.
testDescription = 'Test scenario 12: sx = -20, sy = -20, sw = 50, sh = 50, dx = 20, dy = 20, dw = 125, dh = 125 --- ';
sourceRect = {x: -20, y: -20, w: 50, h: 50};
destRect = {x: 20, y: 20, w: 125, h: 125};
blueCheck = [[70,70], [70,99], [99,70], [82,82]];
blackCheck = [[84,84], [84,99], [99,84], [99,99]];
redCheck = [[0,69], [69, 0], [69,69]];
drawCanvasOnCanvasUsingDrawImage(sourceRect, destRect, blueCheck, blackCheck, redCheck, testDescription);
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240513/e15aee3e/attachment-0001.htm>
More information about the webkit-unassigned
mailing list