[Webkit-unassigned] [Bug 250662] New: CreatePattern for zero height image should return null
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jan 15 19:27:52 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=250662
Bug ID: 250662
Summary: CreatePattern for zero height image should return null
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Keywords: BrowserCompat, WPTImpact
Severity: Normal
Priority: P2
Component: Canvas
Assignee: webkit-unassigned at lists.webkit.org
Reporter: karlcow at apple.com
CC: dino at apple.com, webkit-bug-importer at group.apple.com
The first two steps of createPattern(img, repetition)
> 1. Let usability be the result of checking the usability of image.
> 2. If usability is bad, then return null.
— https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-createpattern-dev
The usability of the image is assessed as:
> If image has an intrinsic width or intrinsic height (or both) equal to zero, then return bad.
https://html.spec.whatwg.org/multipage/canvas.html#check-the-usability-of-the-image-argument
The WPT test fails in Safari TP 161 while it pass in both firefox and chrome.
http://wpt.live/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.zeroheight.html
https://wpt.fyi/results/html/canvas/element/fill-and-stroke-styles/2d.pattern.image.zeroheight.html
The code currently doesn't check the height of the image.
https://searchfox.org/wubkat/rev/18e40f7108b3aa25f33242319e32278e08e25e44/Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp#1984-2015
--
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/20230116/942e43cb/attachment-0001.htm>
More information about the webkit-unassigned
mailing list