{{APIRef("Canvas")}}
RenderingContext
is a helper type representing any of the following rendering contexts:
- {{domxref("CanvasRenderingContext2D")}} or
- {{domxref("WebGLRenderingContext")}}
This is a helper type to simplify the specification, it isn't an interface and there are no objects implementing it.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', "scripting.html#renderingcontext", "RenderingContext")}} | {{Spec2('HTML WHATWG')}} | Initial definition. |