coderef

Canvas createConicGradient()Baseline · Widely available

The createConicGradient() methods draw a conic gradient to a 2D canvas.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Apr 11, 2023. Widely available since Oct 11, 2025.

Browser support

DesktopChrome
1–98Not supported
99+Supportedsince Mar 1, 2022
Current: 155
Edge
12–98Not supported
99+Supportedsince Mar 3, 2022
Current: 154
Firefox
1–111Not supported
112+Supportedsince Apr 11, 2023
Current: 157
Safari
1–16.3Not supported
16.4+Supportedsince Mar 27, 2023
Current: 27
MobileChrome Android
18–98Not supported
99+Supportedsince Mar 1, 2022
Current: 155
Firefox Android
4–111Not supported
112+Supportedsince Apr 11, 2023
Current: 157
Safari iOS
1–16.3Not supported
16.4+Supportedsince Mar 27, 2023
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: createConicGradient.

Feature detection

JS · check before using
if ("CanvasRenderingContext2D" in globalThis && "createConicGradient" in CanvasRenderingContext2D.prototype) {
  // CanvasRenderingContext2D.createConicGradient is available
}

Sub-features

Support for each part of the feature (2). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
CanvasRenderingContext2D.createConicGradient999911216.19911216.1
OffscreenCanvasRenderingContext2D.createConicGradient999910516.49910516.4