This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 14072 - Screen.alphaDepth missing
Summary: Screen.alphaDepth missing
Status: RESOLVED WONTFIX
Alias: None
Product: CSS
Classification: Unclassified
Component: CSSOM View (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-08 01:24 UTC by Glenn Adams
Modified: 2013-08-08 13:28 UTC (History)
4 users (show)

See Also:


Attachments

Description Glenn Adams 2011-09-08 01:24:17 UTC
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
Comment 1 Glenn Adams 2012-08-03 05:55:24 UTC
reassign to myself; apparently i am not the default assignee for this component
Comment 2 Simon Pieters 2013-05-14 12:12:05 UTC
(In reply to comment #0)
> 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;

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?

> this is particularly important on television and some handheld devices that
> have limited transparency support

Which devices have limited transparency support? Are they still relevant?
Comment 3 Glenn Adams 2013-06-18 09:20:36 UTC
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't support more depth than its hardware permits. So yes it is relevant.
Comment 4 Simon Pieters 2013-06-18 09:27:38 UTC
I'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.
Comment 5 Glenn Adams 2013-06-18 09:33:35 UTC
We don't need a "statement of interest from a browser vendor" when its the right thing to do.
Comment 6 Tab Atkins Jr. 2013-06-19 05:36:57 UTC
(In reply to comment #5)
> We don't need a "statement of interest from a browser vendor" when its the
> right thing to do.

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

I'm with Simon - unless you can show devices which are important enough for authors and/or implementors to care about, I'm against adding this.  It's not important enough to stand on its own theoretical legs ahead of demonstrated interest.
Comment 7 Glenn Adams 2013-06-19 05:55:19 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > We don't need a "statement of interest from a browser vendor" when its the
> > right thing to do.
> 
> Yes, we absolutely do, when it's a feature with a high chance of being
> useless in practice.
> 
> I'm with Simon - unless you can show devices which are important enough for
> authors and/or implementors to care about, I'm against adding this.  It's
> not important enough to stand on its own theoretical legs ahead of
> demonstrated interest.

I wouldn't mind removing pixelDepth and colorDepth, which are equally "useless in practice" 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.
Comment 8 Glenn Adams 2013-06-19 05:55:56 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #5)
> > > We don't need a "statement of interest from a browser vendor" when its the
> > > right thing to do.
> > 
> > Yes, we absolutely do, when it's a feature with a high chance of being
> > useless in practice.
> > 
> > I'm with Simon - unless you can show devices which are important enough for
> > authors and/or implementors to care about, I'm against adding this.  It's
> > not important enough to stand on its own theoretical legs ahead of
> > demonstrated interest.
> 
> I wouldn't mind removing pixelDepth and colorDepth, which are equally
> "useless in practice" 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.

I mean "implemented in the spec".
Comment 9 Simon Pieters 2013-06-19 06:07:09 UTC
(In reply to comment #7)
> I wouldn't mind removing pixelDepth and colorDepth, which are equally
> "useless in practice" and possess no justification for inclusion other than
> 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?
Comment 10 Glenn Adams 2013-06-19 06:37:21 UTC
(In reply to comment #9)
> (In reply to comment #7)
> > I wouldn't mind removing pixelDepth and colorDepth, which are equally
> > "useless in practice" and possess no justification for inclusion other than
> > 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?

No (I wouldn'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.
Comment 11 Tab Atkins Jr. 2013-06-19 07:00:29 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > (In reply to comment #7)
> > > I wouldn't mind removing pixelDepth and colorDepth, which are equally
> > > "useless in practice" and possess no justification for inclusion other than
> > > 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?
> 
> No (I wouldn'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.

If there is compat reason to do so, we leave them in and render them cheap and useless.  If there's not, we drop them.  It's a really simple calculus.
Comment 12 Simon Pieters 2013-06-19 08:56:20 UTC
(In reply to comment #10)
> No (I wouldn't object).

Thanks.

https://dvcs.w3.org/hg/csswg/rev/e87354ee3440