W3C home > Mailing lists > Public > www-style@w3.org > January 2008

Re: [CSS MQ] high-contrast-screen, accessibility

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Wed, 09 Jan 2008 23:49:01 -0800
Message-ID: <4785CDED.2010001@terrainformatica.com>
To: Håkon Wium Lie <howcome@opera.com>
CC: www-style@w3.org

Håkon Wium Lie wrote:
> Also sprach Andrew Fedoniouk:
> 
>  > >  > Is it possible to add in media queries [1] value that will 
>  > >  > indicate that UA is running with high-contrast-screen settings?
> 
>  > > In Opera, we support this by way of CSS; View-Style->...
>  > >
>  > > So, UAs are able to add these modes, but I'm not sure it can be
>  > > mandated.
> 
>  > This is mostly  not about UA but about web pages as applications in general.
> 
> So, you're saying that the web page would set/unset this mode? Could
> you give a code example?
> 

Quite opposite:

UA shall set this flag to indicate that current desktop is using high 
contrast mode. Authors may use it to select appropriate color schema.

:root
{
   background: green;
   color: orange;
   font: 8.5 fancy;
}

@media high-contrast
{
   :root
   {
     background: window;
     color: windowtext;
     font: system;
   }
}

or
@media high-contrast-white { ... }
@media high-contrast-black { ... }


In Windows for example this information is available through
SystemParametersInfo(SPI_GETHIGHCONTRAST).


-- 
Andrew Fedoniouk.

http://terrainformatica.com
Received on Thursday, 10 January 2008 07:49:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:57 GMT