Re: [css3-conditional] What does @supports return when the OS prevents the support?

On Thursday 2013-01-10 19:38 +0000, Sylvain Galineau wrote:
> 
> [James Nurthen:]
> > 
> > When the CSS processor "supports" a value BUT the OS prevents the support
> > from actually occurring what would be the result?
> > For example. Would
> > @supports (background-color: #CCC) return true or false when running in
> > Windows High Contrast mode where background colours are not applied.
> > 
> > It would be very useful if this would return false - so this situation
> > could be detected in CSS and appropriate styles applied.
> > 
> What would you expect when the document is being printed and the color might 
> either end up in a shade of grey or the UA might disable backgrounds entirely 
> when printing based on a user setting? 
> 
> Whether the UA supports a particular property-value pair and what the target 
> media does with this same feature are orthogonal in my mind.

I tend to agree with Sylvain here.  I think that there are other
parts of CSS (in particular, the cascade) that are designed for the
interaction of author and user requirements.  There also may be
substantive cases where the user would like to override the author
without the author knowing about it.  I'm inclined to leave
@supports limited to describing the capabilities of the
implementation rather than the user's configuration of it.

(I'm distinguishing user configuration that's intended for end users
from configuration that allows developers to try out experimental
features and thus change the capabilities of the implementation.)

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                           http://www.mozilla.org/   𝄂

Received on Friday, 11 January 2013 20:19:53 UTC