WEBGL_compressed_texture_s3tc_srgb WebGL extensionLimited availability
The WEBGL_compressed_texture_s3tc_srgb extension for WebGL 1.0 and 2.0 contexts adds S3TC compressed texture formats for the sRGB colorspace to compressedTexImage2D() and compressedTexSubImage2D().
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
1–59Not supported
60+Supportedsince Jul 25, 2017
Current: 155Edge
12–79Not supported
80+Supportedsince Feb 7, 2020
Current: 154Firefox
1–54Not supported
55+Supportedsince Aug 8, 2017
Current: 157Safari
1–14Not supported
14.1+Supportedsince Apr 26, 2021
Current: 27MobileChrome Android
18–59Not supported
60+Supportedsince Aug 1, 2017
Current: 155Firefox Android
✕Not supportedup to 157
Current: 157Safari iOS
1–14Not supported
14.5+Supportedsince Apr 26, 2021
Current: 27How to use
Not supported in Firefox Android. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: WEBGL compressed texture s3tc srgb.
Feature detection
JS · check before using
if ("WEBGL_compressed_texture_s3tc_srgb" in globalThis) {
// WEBGL_compressed_texture_s3tc_srgb is available
} else {
// load a polyfill or use a fallback
}