This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The specification should describe a way for authors to find out if filter effects are supported or not. In addition, it would be useful if there was a way to detect if a particular shading language was supported or not.
Would a media query be enough? I really like them because they provide both a CSS and JS method to detect features.
Would `@supports()` / `window.CSS.supports()` be able to cover this? @supports(filter: custom(url('myshader.vs'))) { /* Styles applied if shader supported */ } Potential down sides: * `myshader.vs` would have to be downloaded before it could be verified if this shader language is supported (although henceforth could be cached) * All parameters to the `custom()` function may be needed, which could make this very verbose
We added the @support rule with a value of "webgl". If that value is supported, WebGL fragment and vertex shader must be supported.