<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>14692</bug_id>
          
          <creation_ts>2011-11-04 01:02:56 +0000</creation_ts>
          <short_desc>CSS shader feature detection</short_desc>
          <delta_ts>2013-07-04 16:05:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Filter Effects</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vincent Hardy">vhardy</reporter>
          <assigned_to name="Dean Jackson">dino</assigned_to>
          <cc>cmarrin</cc>
    
    <cc>dschulze</cc>
    
    <cc>eoconnor</cc>
    
    <cc>smfr</cc>
    
    <cc>stuart.cox</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59605</commentid>
    <comment_count>0</comment_count>
    <who name="Vincent Hardy">vhardy</who>
    <bug_when>2011-11-04 01:02:56 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59607</commentid>
    <comment_count>1</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2011-11-04 05:27:06 +0000</bug_when>
    <thetext>Would a media query be enough? I really like them because they provide both a CSS and JS method to detect features.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90047</commentid>
    <comment_count>2</comment_count>
    <who name="Stu Cox">stuart.cox</who>
    <bug_when>2013-07-01 07:44:20 +0000</bug_when>
    <thetext>Would `@supports()` / `window.CSS.supports()` be able to cover this?


@supports(filter: custom(url(&apos;myshader.vs&apos;))) {
    /* 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90355</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Schulze">dschulze</who>
    <bug_when>2013-07-04 16:05:15 +0000</bug_when>
    <thetext>We added the @support rule with a value of &quot;webgl&quot;. If that value is supported, WebGL fragment and vertex shader must be supported.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>