Contact emailsccam...@chromium.orgExplainerhttps://github.com/ccameron-chromium/ColorWeb-CG/blob/canvas_cleanup/canvas2d_settings.mdSpecificationhttps://github.com/whatwg/html/pull/10904SummaryAdd the getContextAttributes interface from CanvasRenderingContext2D to OffscreenCanvasRenderingContext2D. Its omission from CanvasRenderingContext2D was accidental.
Add support for willReadFrequently and desynchronized to OffscreenCanvasRenderingContext2D in the HTML spec. The spec changes for those features were intended to apply both to CanvasRenderingContext2D and to OffscreenCanvasRenderingContext2D. Blink has already shipped support for these.
Clean up the text of the spec to avoid these sorts of mistakes in the future, and to streamline future changes.
Blink componentBlink>Canvas
TAG reviewhttps://github.com/w3ctag/design-reviews/issues/1036TAG review statusPending
RisksInteroperability and Compatibility
None
Gecko: No signal (https://github.com/mozilla/standards-positions/issues/1159)
WebKit: No official signal yet, informal positive (https://github.com/WebKit/standards-positions/issues/445)
Web developers: No signals, but does align the spec with longstanding feature requests (e.g, https://github.com/whatwg/html/issues/2659)
Other signals:
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?
None
DebuggabilityNone
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, pending
https://chromium-review.googlesource.com/c/chromium/src/+/6157844Flag name on about://flagsNone
Finch feature nameOffscreenCanvasGetContextAttributes
Non-finch justificationN/A
Requires code in //chrome?False
Tracking bughttps://crbug.com/388437261Estimated milestonesNo milestones specified
Anticipated spec changesThe altered spec text will be further modified soon to add support for float16 canvas and HDR canvas. Adding new features without cleaning this up would have been irresponsible.