<?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>14072</bug_id>
          
          <creation_ts>2011-09-08 01:24:17 +0000</creation_ts>
          <short_desc>Screen.alphaDepth missing</short_desc>
          <delta_ts>2013-08-08 13:28:48 +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>CSSOM View</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Glenn Adams">glenn</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <cc>www-dom</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>56504</commentid>
    <comment_count>0</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2011-09-08 01:24:17 +0000</bug_when>
    <thetext>the current definition of Screen.colorDepth excludes alpha channel;

it is also desirable to expose the alpha depth supported by the screen in order to make effective decisions about the use of the opacity property; this is particularly important on television and some handheld devices that have limited transparency support</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71814</commentid>
    <comment_count>1</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2012-08-03 05:55:24 +0000</bug_when>
    <thetext>reassign to myself; apparently i am not the default assignee for this component</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87643</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-05-14 12:12:05 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; the current definition of Screen.colorDepth excludes alpha channel;
&gt; 
&gt; it is also desirable to expose the alpha depth supported by the screen in
&gt; order to make effective decisions about the use of the opacity property;

Can you elaborate on how one would use this information? Do you have any examples on pages working around the lack of this feature with e.g. browser sniffing?

&gt; this is particularly important on television and some handheld devices that
&gt; have limited transparency support

Which devices have limited transparency support? Are they still relevant?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89462</commentid>
    <comment_count>3</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2013-06-18 09:20:36 +0000</bug_when>
    <thetext>Client JS can use this information to make a wide variety of decisions about what image resources to use, about what opacity values may be significant, about various compositing features etc.

Every device has limited transparency support in the sense that it (the device) doesn&apos;t support more depth than its hardware permits. So yes it is relevant.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89464</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-06-18 09:27:38 +0000</bug_when>
    <thetext>I&apos;d like to see examples on pages working around the lack of this feature with e.g. browser sniffing or stated implementor interest from a browser vendor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89465</commentid>
    <comment_count>5</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2013-06-18 09:33:35 +0000</bug_when>
    <thetext>We don&apos;t need a &quot;statement of interest from a browser vendor&quot; when its the right thing to do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89543</commentid>
    <comment_count>6</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2013-06-19 05:36:57 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; We don&apos;t need a &quot;statement of interest from a browser vendor&quot; when its the
&gt; right thing to do.

Yes, we absolutely do, when it&apos;s a feature with a high chance of being useless in practice.

I&apos;m with Simon - unless you can show devices which are important enough for authors and/or implementors to care about, I&apos;m against adding this.  It&apos;s not important enough to stand on its own theoretical legs ahead of demonstrated interest.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89545</commentid>
    <comment_count>7</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2013-06-19 05:55:19 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; We don&apos;t need a &quot;statement of interest from a browser vendor&quot; when its the
&gt; &gt; right thing to do.
&gt; 
&gt; Yes, we absolutely do, when it&apos;s a feature with a high chance of being
&gt; useless in practice.
&gt; 
&gt; I&apos;m with Simon - unless you can show devices which are important enough for
&gt; authors and/or implementors to care about, I&apos;m against adding this.  It&apos;s
&gt; not important enough to stand on its own theoretical legs ahead of
&gt; demonstrated interest.

I wouldn&apos;t mind removing pixelDepth and colorDepth, which are equally &quot;useless in practice&quot; and possess no justification for inclusion other than they happen to be implemented in a bug-for-bug compatible manner.

However, if these are to be implemented, then I will formally object if an alphaDepth is not defined as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89546</commentid>
    <comment_count>8</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2013-06-19 05:55:56 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; We don&apos;t need a &quot;statement of interest from a browser vendor&quot; when its the
&gt; &gt; &gt; right thing to do.
&gt; &gt; 
&gt; &gt; Yes, we absolutely do, when it&apos;s a feature with a high chance of being
&gt; &gt; useless in practice.
&gt; &gt; 
&gt; &gt; I&apos;m with Simon - unless you can show devices which are important enough for
&gt; &gt; authors and/or implementors to care about, I&apos;m against adding this.  It&apos;s
&gt; &gt; not important enough to stand on its own theoretical legs ahead of
&gt; &gt; demonstrated interest.
&gt; 
&gt; I wouldn&apos;t mind removing pixelDepth and colorDepth, which are equally
&gt; &quot;useless in practice&quot; and possess no justification for inclusion other than
&gt; they happen to be implemented in a bug-for-bug compatible manner.
&gt; 
&gt; However, if these are to be implemented, then I will formally object if an
&gt; alphaDepth is not defined as well.

I mean &quot;implemented in the spec&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89547</commentid>
    <comment_count>9</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-06-19 06:07:09 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; I wouldn&apos;t mind removing pixelDepth and colorDepth, which are equally
&gt; &quot;useless in practice&quot; and possess no justification for inclusion other than
&gt; they happen to be implemented in a bug-for-bug compatible manner.

Would you object if they were defined to return a predefined value of 24 and the spec noted that they are useless but are included for compatibility?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89554</commentid>
    <comment_count>10</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2013-06-19 06:37:21 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #7)
&gt; &gt; I wouldn&apos;t mind removing pixelDepth and colorDepth, which are equally
&gt; &gt; &quot;useless in practice&quot; and possess no justification for inclusion other than
&gt; &gt; they happen to be implemented in a bug-for-bug compatible manner.
&gt; 
&gt; Would you object if they were defined to return a predefined value of 24 and
&gt; the spec noted that they are useless but are included for compatibility?

No (I wouldn&apos;t object). But I would question the need or wisdom to codify such nonsense in a W3C spec. Just because some feature is implemented in some set of browsers is no reason to necessarily write it into a W3C spec. In this case, we would be better off to leave it out of the spec IMO.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89556</commentid>
    <comment_count>11</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2013-06-19 07:00:29 +0000</bug_when>
    <thetext>(In reply to comment #10)
&gt; (In reply to comment #9)
&gt; &gt; (In reply to comment #7)
&gt; &gt; &gt; I wouldn&apos;t mind removing pixelDepth and colorDepth, which are equally
&gt; &gt; &gt; &quot;useless in practice&quot; and possess no justification for inclusion other than
&gt; &gt; &gt; they happen to be implemented in a bug-for-bug compatible manner.
&gt; &gt; 
&gt; &gt; Would you object if they were defined to return a predefined value of 24 and
&gt; &gt; the spec noted that they are useless but are included for compatibility?
&gt; 
&gt; No (I wouldn&apos;t object). But I would question the need or wisdom to codify
&gt; such nonsense in a W3C spec. Just because some feature is implemented in
&gt; some set of browsers is no reason to necessarily write it into a W3C spec.
&gt; In this case, we would be better off to leave it out of the spec IMO.

If there is compat reason to do so, we leave them in and render them cheap and useless.  If there&apos;s not, we drop them.  It&apos;s a really simple calculus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89575</commentid>
    <comment_count>12</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-06-19 08:56:20 +0000</bug_when>
    <thetext>(In reply to comment #10)
&gt; No (I wouldn&apos;t object).

Thanks.

https://dvcs.w3.org/hg/csswg/rev/e87354ee3440</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>