W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: [media-queries] and Ambient Light Sensor API

From: Doug Turner <dougt@mozilla.com>
Date: Tue, 21 Aug 2012 09:25:33 -0700 (PDT)
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Cc: public-device-apis@w3.org, www-style@w3.org
Message-ID: <55292531.1093669.1345566333541.JavaMail.root@mozilla.com>
I don't really have a strong opinion.

You may also want to consider exposing user proximity:  http://dougturner.wordpress.com/2012/05/15/user-proximity-sensor-4/.


Doug
 
----- Original Message -----
From: "Daniel Glazman" <daniel.glazman@disruptive-innovations.com>
To: public-device-apis@w3.org, www-style@w3.org
Cc: dougt@mozilla.com
Sent: Tuesday, August 21, 2012 7:04:32 AM
Subject: [media-queries] and Ambient Light Sensor API

Hello Doug, public-device-apis@w3.org and www-style@w3.org

Looking at the WD of Ambient Light Sensor API [1] on one hand and at
the IDPF Alternate Style Tags spec for EPUB3 by Fantasai (in particular
the 'day' and 'night' values) [2] on the other, I really wonder if that
API should not have its Media Queries [3] counterpart...

For instance:

feature  'ambient-light-sensor'
Value: <integer>
Applies to: visual media types
Accepts min/max prefixes: no

   Value will be 1 if an ambient light sensor is available on the device
   and 0 if not.

feature 'ambient-light-level'
Value: <number>
Applies to: visual media types
Accepts min/max prefixes: YES

   This media feature describes the ambient light level in lux. The
   specified <number> cannot be negative.

Opinions?

[1] http://www.w3.org/TR/ambient-light/
[2] http://idpf.org/epub/altss-tags/
[3] http://www.w3.org/TR/css3-mediaqueries

</Daniel>
Received on Tuesday, 21 August 2012 16:26:01 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:58 GMT