forked from KhronosGroup/WebGL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip some ImageBitmap from ImageData tests w/o ImageBitmapOptions. (K…
…hronosGroup#3134) When ImageBitmapOptions is not supported by the browser, the implicit behavior of the premultiplyAlpha option is the default. Per HTML specification: https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#cropped-to-the-source-rectangle-with-formatting this is implementation-specific (either premultiplied or not), so when the input ImageData has alpha != 1.0, there isn't a single correct answer. Skip these tests. This was discovered while implementing ImageBitmap from ImageData support in WebKit in https://bugs.webkit.org/show_bug.cgi?id=183438 , though WebKit supports ImageBitmapOptions. Firefox currently doesn't support ImageBitmapOptions and happens to have been passing these tests, but WebKit wouldn't have.
- Loading branch information
1 parent
6bb52ca
commit 272eb8d
Showing
1 changed file
with
34 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters