NEW112628
Implement CanvasRenderingContext2DSettings.alpha for 2d canvas getContext
https://bugs.webkit.org/show_bug.cgi?id=112628
Summary Implement CanvasRenderingContext2DSettings.alpha for 2d canvas getContext
Stephen White
Reported 2013-03-18 14:45:00 PDT
Implement canvas.getContext('2d', { alpha: none })
Attachments
Patch (37.57 KB, patch)
2013-03-18 14:45 PDT, Stephen White
no flags
Patch (37.10 KB, patch)
2013-03-22 18:06 PDT, Stephen White
no flags
Patch (37.18 KB, patch)
2013-03-22 20:14 PDT, Stephen White
no flags
Patch (39.05 KB, patch)
2013-03-22 23:10 PDT, Stephen White
no flags
Patch (38.99 KB, patch)
2013-03-25 10:54 PDT, Stephen White
no flags
Archive of layout-test-results from gce-cr-linux-06 for chromium-linux-x86_64 (972.09 KB, application/zip)
2013-03-25 17:49 PDT, WebKit Review Bot
no flags
Patch (39.01 KB, patch)
2013-04-04 11:25 PDT, Stephen White
no flags
Stephen White
Comment 1 2013-03-18 14:45:26 PDT
Stephen White
Comment 2 2013-03-18 14:46:00 PDT
This is not marked for review, since the feature is under discussion.
Stephen White
Comment 3 2013-03-22 18:06:57 PDT
Stephen White
Comment 4 2013-03-22 20:14:02 PDT
WebKit Review Bot
Comment 5 2013-03-22 21:25:24 PDT
Comment on attachment 194683 [details] Patch Attachment 194683 [details] did not pass chromium-ews (chromium-xvfb): Output: http://webkit-commit-queue.appspot.com/results/17141604
WebKit Review Bot
Comment 6 2013-03-22 21:27:21 PDT
Comment on attachment 194683 [details] Patch Attachment 194683 [details] did not pass cr-linux-debug-ews (chromium-xvfb): Output: http://webkit-commit-queue.appspot.com/results/17303008
Peter Beverloo (cr-android ews)
Comment 7 2013-03-22 21:50:54 PDT
Comment on attachment 194683 [details] Patch Attachment 194683 [details] did not pass cr-android-ews (chromium-android): Output: http://webkit-commit-queue.appspot.com/results/17292087
Build Bot
Comment 8 2013-03-22 21:59:22 PDT
WebKit Review Bot
Comment 9 2013-03-22 22:04:56 PDT
Comment on attachment 194683 [details] Patch Attachment 194683 [details] did not pass chromium-ews (chromium-xvfb): Output: http://webkit-commit-queue.appspot.com/results/17298094
WebKit Review Bot
Comment 10 2013-03-22 22:34:14 PDT
Comment on attachment 194683 [details] Patch Attachment 194683 [details] did not pass cr-linux-debug-ews (chromium-xvfb): Output: http://webkit-commit-queue.appspot.com/results/17298096
Peter Beverloo (cr-android ews)
Comment 11 2013-03-22 22:54:11 PDT
Comment on attachment 194683 [details] Patch Attachment 194683 [details] did not pass cr-android-ews (chromium-android): Output: http://webkit-commit-queue.appspot.com/results/17141623
Stephen White
Comment 12 2013-03-22 23:10:47 PDT
Elliott Sprehn
Comment 13 2013-03-23 19:27:40 PDT
This really needs to be opaque: true. I mean we're even calling it isOpaque in our own code! The test is opaque-....html and so on. Clearly the naming is wrong if we're not using it ourselves.
Stephen White
Comment 14 2013-03-24 07:46:44 PDT
(In reply to comment #13) > This really needs to be opaque: true. I mean we're even calling it isOpaque in our own code! The test is opaque-....html and so on. Clearly the naming is wrong if we're not using it ourselves. That's mostly due to it being a modification of the other patch (<canvas opaque>). The naming here is intended to match WebGL. Will rename the code while we discuss it.
Stephen White
Comment 15 2013-03-25 10:54:52 PDT
WebKit Review Bot
Comment 16 2013-03-25 17:48:54 PDT
Comment on attachment 194887 [details] Patch Attachment 194887 [details] did not pass chromium-ews (chromium-xvfb): Output: http://webkit-commit-queue.appspot.com/results/17203597 New failing tests: canvas/philip/tests/2d.composite.uncovered.nocontext.source-out.html platform/chromium/virtual/gpu/canvas/philip/tests/2d.pattern.basic.nocontext.html canvas/philip/tests/2d.composite.uncovered.nocontext.source-in.html platform/chromium/virtual/gpu/canvas/philip/tests/2d.composite.uncovered.nocontext.source-out.html canvas/philip/tests/2d.composite.uncovered.nocontext.destination-in.html canvas/philip/tests/2d.composite.uncovered.nocontext.copy.html canvas/philip/tests/2d.pattern.basic.nocontext.html platform/chromium/virtual/gpu/compositedscrolling/overflow/image-load-overflow-scrollbars.html platform/chromium/virtual/gpu/canvas/philip/tests/2d.composite.uncovered.nocontext.destination-in.html platform/chromium/virtual/gpu/canvas/philip/tests/2d.composite.uncovered.nocontext.destination-atop.html platform/chromium/virtual/softwarecompositing/overflow/image-load-overflow-scrollbars.html platform/chromium/virtual/gpu/canvas/philip/tests/2d.composite.uncovered.nocontext.source-in.html canvas/philip/tests/2d.composite.uncovered.nocontext.destination-atop.html compositing/overflow/image-load-overflow-scrollbars.html platform/chromium/virtual/gpu/canvas/philip/tests/2d.composite.uncovered.nocontext.copy.html
WebKit Review Bot
Comment 17 2013-03-25 17:49:00 PDT
Created attachment 194965 [details] Archive of layout-test-results from gce-cr-linux-06 for chromium-linux-x86_64 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: gce-cr-linux-06 Port: chromium-linux-x86_64 Platform: Linux-3.3.8-gcg-201212281604-x86_64-with-GCEL-10.04-gcel_10.04
Stephen White
Comment 18 2013-04-04 11:25:38 PDT
Brent Fulgham
Comment 19 2016-03-21 17:15:03 PDT
Dean, is this something we should be looking at for Canvas? This is some old code, so perhaps it's not relevant anymore?
Sam Weinig
Comment 20 2021-05-01 08:38:13 PDT
*** Bug 225191 has been marked as a duplicate of this bug. ***
Sam Sneddon [:gsnedders]
Comment 21 2025-05-22 18:10:16 PDT
Bug 225173 implemented basic support for CanvasRenderingContext2DSettings. Since then, more has been filled in. We currently have in https://github.com/WebKit/WebKit/blob/9a322f4ab7cee3a527f4df4f1dccf1a9050e9296/Source/WebCore/html/canvas/CanvasRenderingContext2DSettings.idl with the spec https://html.spec.whatwg.org/multipage/canvas.html#canvasrenderingcontext2dsettings we're missing: * alpha, and * colorType (which we support as pixelType, see bug 287139). Let's clarify the title of this bug and make it clear that — like the patch from 2013 — this is entirely about alpha, and that's not merely an example of an attribute.
Radar WebKit Bug Importer
Comment 22 2025-05-22 18:10:32 PDT
Note You need to log in before you can comment on or make changes to this bug.