#1036: [HTML] Fix divergence of CanvasRenderingContext2D and Offscreen with CanvasSettings

Visit on Github.

Opened Jan 8, 2025

こんにちは TAG-さん!

I'm requesting a TAG review of CanvasSettings.

There is a lot of duplicated spec text for CanvasRenderingContext2D and OffscreenCanvasRenderingContext2D, especially related to how CanvasRenderingContext2DSettings is handled. As with all things that are duplicated, there are accidental divergences.

This creates a new mixin interface CanvasSettings. This will unify the accidentally diverged paths, and also prevent this from happening in the future. It will introduce some features accidentally left out of OffscreenCanvasRenderingContext2D.

This is being pursued so that things like floating-point and HDR canvas do not need to add duplicate text when they are added to the specification.

Further details:

  • I have reviewed the TAG's Web Platform Design Principles
  • Relevant time constraints or deadlines:
  • The group where the work on this specification is currently being done: ColorWeb-CG (because of floating-point and HDR canvas)
  • The group where standardization of this work is intended to be done (if different from the current group):
  • Major unresolved issues with or opposition to this specification:
  • This work is being funded by:

Discussions