On May 3, 2021, at 9:58 AM, Simon Fraser via webkit-dev <webkit-dev@lists.webkit.org> wrote:


On May 1, 2021, at 10:07 AM, Aaron Krajeski via webkit-dev <webkit-dev@lists.webkit.org> wrote:

Hi webkit-dev,

This is a request for WebKit's position on New Canvas 2D API features.



Summary

Updated functionality for the Canvas2D API. Adds nine new features/functions to CanvasRenderingContext2D:
  - "ContextLost" and "ContextRestored" events


Seems reasonable.

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


Seems reasonable.

  - CSSColorValues as style inputs


Seems reasonable (gated on Typed OM support).

  - More CSS text modifier support


WebKit has already expressed support for the proposal.

  - A reset function


We'e already expressed some concerns in the issue.

  - A roundRect draw primitive


Seems reasonable.

  - Full 4x4 transformation matrices


WebKit's architecture on macOS/iOS currently has no way to render these, so we don't support this proposal at this time.

  - Conic gradients


Seems reasonable.

  - Better support for SVG filters


Seems reasonable, although this would have performance implications in our current architecture.

^ On this one I’ll add, it would be better if this could reuse the existing CSS or SVG ways of describing a filter instead of adding a novel way. In addition, the filter syntax here is strictly less expressive than SVG filters; it appears to only support a linear filter chain, rather than a filter graph like SVG does.


Simon

Contact emails


Spec and tests
  - WHATWG spec in progress:
  - MDN spec 
         Conic gradient
Text Modifiers (via ChromeLabs/puppy-content)

- Web platform tests

Context Loss (this is not testable on WPT)
WillReadFrequently (testable in WPT, work in progress to add tests there)

Look forward to hearing your feedback!

Cheers!
  Aaron
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev

_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev