<?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>24388</bug_id>
          
          <creation_ts>2014-01-24 23:25:06 +0000</creation_ts>
          <short_desc>Expose CSS-support API to Web Workers</short_desc>
          <delta_ts>2014-10-02 17:52:11 +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>Conditional Rules</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Jonas Sicking (Not reading bugmail)">jonas</reporter>
          <assigned_to name="L. David Baron (Mozilla)">dbaron</assigned_to>
          <cc>brunoaiss</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>99040</commentid>
    <comment_count>0</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2014-01-24 23:25:06 +0000</bug_when>
    <thetext>We should expose the CSS-support API to Web Workers.

This is going to be especially important for ServiceWorkers who will want to decide which resources to download based on capabilities of the UA.

So for example if a UA doesn&apos;t support some flexbox, the website might want to cache an additional JS library which provides a fallback.

Does CSS-support enable detecting things like support for different font formats and image formats? That&apos;s also needed for service workers, but might be a separate API?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99089</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-01-25 20:37:14 +0000</bug_when>
    <thetext>You mean CSS.supports(), right?

(In reply to Jonas Sicking from comment #0)
&gt; Does CSS-support enable detecting things like support for different font
&gt; formats and image formats?

No. It just checks if it parses successfully. See http://www.w3.org/TR/css3-conditional/#the-css-interface

&gt; That&apos;s also needed for service workers, but might
&gt; be a separate API?

Could you file a new bug for that, please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99175</commentid>
    <comment_count>2</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2014-01-27 18:57:01 +0000</bug_when>
    <thetext>Yes, I mean CSS.supports().

A more detailed description of the use-case is available in bug 24387 comment 2. That bug tries to cover querying for hardware metrics. However the use case mentioned there could also require asking about software capabilities like CSS support from the worker.

In particular, being able to pre-cache JS-libraries which provide fallback to missing CSS support would be useful.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>