diff --git a/index.bs b/index.bs index d930bc9..93aac60 100644 --- a/index.bs +++ b/index.bs @@ -46,6 +46,14 @@ The Ambient Light Sensor extends the Generic Sensor API [[GENERIC-SENSOR]] to provide information about ambient light levels, as detected by the device's main light detector, in terms of lux units. +Scope {#scope} +----- + +For document styling use cases that do not require accuracy, low latency, and high frequency, +the `light-level` CSS media feature [[MEDIAQUERIES-5]] can be more appropriate. The `light-level` +media feature has a set of pre-defined values that represents a composite of screen brightness, +screen technology, ambient light level, and possibly other factors depending on implementation. + Note: it might be worthwhile to provide a high-level Light Level Sensor which would mirror the `light-level` media feature, but in JavaScript. This sensor would *not require additional user permission to be activated* @@ -149,11 +157,6 @@ While some of the use cases may benefit from obtaining precise ambient light mea cases that convert ambient light level fluctuations to user input events, would benefit from higher [=sampling frequency|sampling frequencies=]. -Note: For document styling use cases that do not require accuracy, low latency, and high frequency, -the `light-level` CSS media feature [[MEDIAQUERIES-4]] can be more appropriate. The `light-level` -media feature has a set of pre-defined values that represents a composite of screen brightness, -screen technology, ambient light level, and possibly other factors depending on implementation. - Acknowledgements {#acknowledgements} ================ diff --git a/index.html b/index.html index 31e8aa6..d9f63be 100644 --- a/index.html +++ b/index.html @@ -1431,7 +1431,7 @@

Ambient Light Sensor

-

Editor’s Draft,

+

Editor’s Draft,

This version: @@ -1493,7 +1493,11 @@

Table of Contents

    -
  1. 1 Introduction +
  2. + 1 Introduction +
      +
    1. 1.1 Scope +
  3. 2 Examples
  4. 3 Security and Privacy Considerations
  5. 4 Model @@ -1528,6 +1532,10 @@

    Table of Contents

    1. Introduction

    The Ambient Light Sensor extends the Generic Sensor API [GENERIC-SENSOR] to provide information about ambient light levels, as detected by the device’s main light detector, in terms of lux units.

    +

    1.1. Scope

    +

    For document styling use cases that do not require accuracy, low latency, and high frequency, +the light-level CSS media feature [MEDIAQUERIES-5] can be more appropriate. The light-level media feature has a set of pre-defined values that represents a composite of screen brightness, +screen technology, ambient light level, and possibly other factors depending on implementation.

    Note: it might be worthwhile to provide a high-level Light Level Sensor which would mirror the light-level media feature, but in JavaScript. This sensor would not require additional user permission to be activated in user agents that exposed the light-level media feature.

    @@ -1610,9 +1618,6 @@

    While some of the use cases may benefit from obtaining precise ambient light measurements, the use cases that convert ambient light level fluctuations to user input events, would benefit from higher sampling frequencies.

    -

    Note: For document styling use cases that do not require accuracy, low latency, and high frequency, -the light-level CSS media feature [MEDIAQUERIES-4] can be more appropriate. The light-level media feature has a set of pre-defined values that represents a composite of screen brightness, -screen technology, ambient light level, and possibly other factors depending on implementation.

    7. Acknowledgements

    Doug Turner for the initial prototype and Marcos Caceres for the test suite.

    @@ -1694,8 +1699,6 @@

    N

Informative References

-
[MEDIAQUERIES-4] -
Florian Rivoal; Tab Atkins Jr.. Media Queries Level 4. URL: https://drafts.csswg.org/mediaqueries-4/
[SI]
SI Brochure: The International System of Units (SI), 8th edition. 2014. URL: http://www.bipm.org/en/publications/si-brochure/