Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Intent to Extend Origin Trial: New Canvas 2D API

108 views
Skip to first unread message

Aaron Krajeski

unread,
Sep 13, 2021, 7:24:12 AM9/13/21
to blink-dev

Hello blink dev! We're looking to extend the New Canvas 2D API to M98 as it did not actually end up landing until M95 due to an oversight and the change to the release calendar. Contact emails

aar...@chromium.org, fs...@chromium.org


Explainer

https://github.com/fserb/canvas2d

https://youtu.be/dfOKFSDG7IM


Specification

Context Lost Event

Context Restored Event

Will Read Frequently

New Text Modifiers

Reset

RoundRect
Conic Gradient
TODO Filters


Summary

Updated functionality for the Canvas2D API. Adds eight new features/functions to CanvasRenderingContext2D:


  - "ContextLost" and "ContextRestored" events

  - "willReadFrequently" option for canvases where lots of readback is expected

  - CSSColorValues as style inputs

  - More CSS text modifier support

  - A reset function

  - A roundRect draw primitive

  - Conic gradients

  - Better support for SVG filters


https://github.com/fserb/canvas2d


Blink component

Blink>Canvas


TAG review


TAG review status

Progress: Propose Closing


Risks

Security and privacy team expressed concerns with ContextLost and ContextRestored events during the intent to implement phase. These concerns were addressed by re-designing the event to not launch simultaneously across different contexts.


Interoperability and Compatibility



Gecko: In development (https://github.com/whatwg/html/issues/5431) Already implemented conic gradient. Okay with willReadFrequently, transforms and reset. Push back on filters.


WebKit: Positive (https://github.com/whatwg/html/issues/5619) Some push back on perspective transforms. Positive signal on text modifiers, round rect and color input.


Web developers: Positive (https://www.youtube.com/watch?v=dfOKFSDG7IM) CDN talk in December was received very positively.



Debuggability



Is this feature fully tested by web-platform-tests?

Yes


Flag name

#new-canvas-2d-api


Requires code in //chrome?

False


Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1201359


Estimated milestones

OriginTrial desktop first

95

OriginTrial desktop last

98

OriginTrial android first

95

OriginTrial android last

98



Link to entry on the Chrome Platform Status

https://www.chromestatus.com/feature/6051647656558592


This intent message was generated by Chrome Platform Status.


Yoav Weiss

unread,
Sep 14, 2021, 1:59:14 AM9/14/21
to blink-dev, Aaron Krajeski
On Monday, September 13, 2021 at 1:24:12 PM UTC+2 Aaron Krajeski wrote:

Hello blink dev! We're looking to extend the New Canvas 2D API to M98 as it did not actually end up landing until M95 due to an oversight and the change to the release calendar.


Do I understand correctly and the experiment haven't really started? If so, I don't think you need an extension, but instead you could indicate on the past intent that the timelines are shifting by 3 milestones.

Aaron Krajeski

unread,
Sep 14, 2021, 9:55:17 AM9/14/21
to Yoav Weiss, blink-dev
Okay! I will do that
Reply all
Reply to author
Forward
0 new messages