Skip to content

[HTML] 2D canvas floating point support #1030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
ccameron-chromium opened this issue Dec 18, 2024 · 4 comments
Closed
1 task done

[HTML] 2D canvas floating point support #1030

ccameron-chromium opened this issue Dec 18, 2024 · 4 comments

Comments

@ccameron-chromium
Copy link

I'm requesting a TAG review of 2D canvas floating point!

The output bitmap of a CanvasRenderingContext2D (or offscreen) defaults to being 8-bit on all browses (although it is not specified this way). This change makes that behavior explicitly specified, and add the option, via CanvasRenderingContext2DSettings, to specify that it can be 16-bit floating point.

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
  • Major unresolved issues with or opposition to this specification:
  • This work is being funded by:

You should also know that...

A superset of this functionality was reviewed by TAG as part of the proposal for Adding support for High Dynamic Range (HDR) imagery to HTML Canvas. That proposal is being split into several independent components to be added individually.

@ccameron-chromium
Copy link
Author

The comments for the larger TAG review that are relevant for this the ones relating to toDataURL and toBlob, which have been clarified (both in terms of immediate behavior and future extensions in HDR work) in the smaller explainer.

@zcorpan
Copy link

zcorpan commented Mar 27, 2025

The WebKit s-p comments link to whatwg/html#10951, is that the relevant spec PR?

@ccameron-chromium
Copy link
Author

Yes. There is also a related ImageData PR at:
whatwg/html#11143

@matatk matatk added the Progress: propose closing we think it should be closed but are waiting on some feedback or consensus label Mar 31, 2025
@matatk
Copy link

matatk commented Apr 3, 2025

Hi @ccameron-chromium, thanks for your review request. We have had a look (thanks for the clear and helpful explainer), and are happy to see the work proceed, and this gap being addressed.

Thanks to @zcorpan for your help with this review.

@matatk matatk closed this as completed Apr 3, 2025
@matatk matatk added Resolution: satisfied The TAG is satisfied with this design and removed Progress: in progress Progress: propose closing we think it should be closed but are waiting on some feedback or consensus labels Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants