Contact emails
[email protected]

Specification
https://html.spec.whatwg.org/multipage/canvas.html#colour-spaces-and-colour-correction


Summary
Add srgb-linear and display-p3-linear color spaces (as defined by CSS) to 
PredefinedColorSpace for use with canvases.


Blink component
Blink>Canvas


Web Feature ID
canvas-2d-color-management


Motivation
Linear color spaces (where pixel values correspond linearly to luminance) are 
extremely commonly used in applications with connections to physical light 
rendering (eg, games) or spatial processing (eg, decimation, anti-aliasing, and 
interpolation).


Initial public proposal
No information provided


TAG review
https://github.com/w3ctag/design-reviews/issues/1194 (Note that this is for the 
full HDR on the web project, which this is a part of)


TAG review status
Issues addressed


Goals for experimentation
None


Risks




Interoperability and Compatibility
No information provided

Gecko: No signal

WebKit: Positive Suggested by WebKit, already implemented in WebKit.

Web developers: Positive Partners have repeatedly requested linear working 
color spaces

Other signals:


Ergonomics
None


Activation
None


Security
None


WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it 
has potentially high risk for Android WebView-based applications?
No information provided



Debuggability
The corresponding CSS color spaces are supported in DevTools (DevTools does not 
have any features related to canvas bitmap color spaces).


Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, 
ChromeOS, Android, and Android WebView)?
Yes


Is this feature fully tested by web-platform-tests?
Yes
API tests (setting and getting): 
https://wpt.fyi/results/html/canvas/element/manual/context-attributes/getContextAttributes.html
 Draw-and-readback tests: 
https://wpt.fyi/results/?label=experimental&label=master&aligned&q=2d.color.space
 Chromium CLs: 
https://chromium-review.git.corp.google.com/c/chromium/src/+/8313909 Roundtrip 
tests (toDataURL, toBlob, etc): 
https://chromium-review.git.corp.google.com/c/chromium/src/+/8312949 
https://chromium-review.git.corp.google.com/c/chromium/src/+/8314209


Flag name on about://flags
No information provided


Finch feature name
ColorSpacePredefinedLinearSpaces


Rollout plan
Will ship enabled for all users


Requires code in //chrome?
False


Tracking bug
https://issuetracker.google.com/issues/454152417


Availability expectation
Feature is available on Web Platform Baseline within 12 months of launch in 
Chrome.


Adoption expectation
Feature is considered a best practice for some use case within 12 months of 
reaching Web Platform baseline. This is a very common space for 
physically-based rendering applications in WebGL and WebGPU.


Adoption plan
None.


Non-OSS dependencies

Does the feature depend on any code or APIs outside the Chromium open source 
repository and its open-source dependencies to function?
None


Estimated milestones


Shipping on desktop 155

Shipping on Android 155

Shipping on WebView 155




Anticipated spec changes

Open questions about a feature may be a source of future web compat or interop 
issues. Please list open issues (eg links to known github issues in the project 
for the feature specification) whose resolution may introduce web 
compat/interop risk (eg, changing to naming or structure of the API in a 
non-backward-compatible way).
A further color space in this class (either rec2100-linear or rec2020-linear) 
has been requested but is not added in this feature. That particular space has 
controversies that neither of these do, which we need to be very careful to get 
right.


Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5122501071994880?gate=6522766912258048


This intent message was generated by Chrome Platform Status.

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6a9b2c7c.81999fdc.db953.0248.GAE%40google.com.

Reply via email to