coderef

EXT_sRGB WebGL extensionBaseline · Widely available

The EXT_sRGB extension for WebGL 1.0 contexts adds sRGB support to textures and framebuffer objects.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Feb 7, 2020. Widely available since Aug 7, 2022.

Browser support

DesktopChrome
1–39Not supported
40+Supportedsince Jan 21, 2015
Current: 155
Edge
12–79Not supported
80+Supportedsince Feb 7, 2020
Current: 154
Firefox
1–57Not supported
58+Supportedsince Jan 23, 2018
Current: 157
Safari
1–8Not supported
9+Supportedsince Sep 30, 2015
Current: 27
MobileChrome Android
18–39Not supported
40+Supportedsince Jan 21, 2015
Current: 155
Firefox Android
4–27Not supported
28+Supportedsince Mar 18, 2014
Current: 157
Safari iOS
1–8Not supported
9+Supportedsince Sep 16, 2015
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: EXT sRGB.

Feature detection

JS · check before using
if ("EXT_sRGB" in globalThis) {
  // EXT_sRGB is available
} else {
  // load a polyfill or use a fallback
}