1030
1030
}
1031
1031
/* } */
1032
1032
1033
- @supports (display : grid) {
1033
+ @supports (display : grid) and ( display : contents) {
1034
1034
/* Use #toc over .toc to override non-@supports rules. */
1035
1035
# toc {
1036
1036
display : grid;
1219
1219
background-attachment : fixed;
1220
1220
}
1221
1221
</ style >
1222
- < meta content ="Bikeshed version 0da7328bb90ef81993146377e4e0fed236969c4c " name ="generator ">
1222
+ < meta content ="Bikeshed version 220086d88511a9c99d7a1f9b5447db7e7b99e053 " name ="generator ">
1223
1223
< link href ="http://www.w3.org/TR/ambient-light/ " rel ="canonical ">
1224
- < meta content ="39bea48088de9d74d70ddd1b2783f099888d8fe9 " name ="document-revision ">
1224
+ < meta content ="d5611c2530e538d2f46914cc1483827cc1fc0244 " name ="document-revision ">
1225
1225
< style > /* style-md-lists */
1226
1226
1227
1227
/* This is a weird hack for me not yet following the commonmark spec
1479
1479
< div class ="head ">
1480
1480
< p data-fill-with ="logo "> < a class ="logo " href ="https://www.w3.org/ "> < img alt ="W3C " height ="48 " src ="https://www.w3.org/StyleSheets/TR/2016/logos/W3C " width ="72 "> </ a > </ p >
1481
1481
< h1 class ="p-name no-ref " id ="title "> Ambient Light Sensor</ h1 >
1482
- < h2 class ="no-num no-toc no-ref heading settled " id ="subtitle "> < span class ="content "> Editor’s Draft, < time class ="dt-updated " datetime ="2019-02-21 " > 21 February 2019</ time > </ span > </ h2 >
1482
+ < h2 class ="no-num no-toc no-ref heading settled " id ="subtitle "> < span class ="content "> Editor’s Draft, < time class ="dt-updated " datetime ="2019-08-09 " > 9 August 2019</ time > </ span > </ h2 >
1483
1483
< div data-fill-with ="spec-metadata ">
1484
1484
< dl >
1485
1485
< dt > This version:
@@ -1507,7 +1507,7 @@ <h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="cont
1507
1507
</ dl >
1508
1508
</ div >
1509
1509
< div data-fill-with ="warning "> </ div >
1510
- < p class ="copyright " data-fill-with ="copyright "> < a href ="http ://www.w3.org/Consortium/Legal/ipr-notice#Copyright "> Copyright</ a > © 2019 < a href ="https://www.w3.org/ "> < abbr title ="World Wide Web Consortium "> W3C</ abbr > </ a > < sup > ®</ sup > (< a href ="http ://www.csail.mit.edu/ "> < abbr title ="Massachusetts Institute of Technology "> MIT</ abbr > </ a > , < a href ="http ://www.ercim.eu/ "> < abbr title ="European Research Consortium for Informatics and Mathematics "> ERCIM</ abbr > </ a > , < a href ="http ://www.keio.ac.jp/ "> Keio</ a > , < a href ="http ://ev.buaa.edu.cn/ "> Beihang</ a > ). W3C < a href ="https ://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer "> liability</ a > , < a href ="https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks "> trademark</ a > and < a href ="https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document "> permissive document license</ a > rules apply. </ p >
1510
+ < p class ="copyright " data-fill-with ="copyright "> < a href ="https ://www.w3.org/Consortium/Legal/ipr-notice#Copyright "> Copyright</ a > © 2019 < a href ="https://www.w3.org/ "> < abbr title ="World Wide Web Consortium "> W3C</ abbr > </ a > < sup > ®</ sup > (< a href ="https ://www.csail.mit.edu/ "> < abbr title ="Massachusetts Institute of Technology "> MIT</ abbr > </ a > , < a href ="https ://www.ercim.eu/ "> < abbr title ="European Research Consortium for Informatics and Mathematics "> ERCIM</ abbr > </ a > , < a href ="https ://www.keio.ac.jp/ "> Keio</ a > , < a href ="https ://ev.buaa.edu.cn/ "> Beihang</ a > ). W3C < a href ="http ://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer "> liability</ a > , < a href ="https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks "> trademark</ a > and < a href ="https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document " rel =" license "> permissive document license</ a > rules apply. </ p >
1511
1511
< hr title ="Separator for header ">
1512
1512
</ div >
1513
1513
< div class ="p-summary " data-fill-with ="abstract ">
@@ -1534,7 +1534,7 @@ <h2 class="no-num no-toc no-ref heading settled" id="sotd"><span class="content"
1534
1534
W3C maintains a < a href ="https://www.w3.org/2004/01/pp-impl/43696/status " rel ="disclosure "> public list of any patent disclosures</ a > made in connection with the deliverables of the group;
1535
1535
that page also includes instructions for disclosing a patent.
1536
1536
An individual who has actual knowledge of a patent which the individual believes contains < a href ="https://www.w3.org/Consortium/Patent-Policy/#def-essential "> Essential Claim(s)</ a > must disclose the information in accordance with < a href ="https://www.w3.org/Consortium/Patent-Policy/#sec-Disclosure "> section 6 of the W3C Patent Policy</ a > . </ p >
1537
- < p > This document is governed by the < a href ="https://www.w3.org/2018 /Process-20180201 / " id ="w3c_process_revision "> 1 February 2018 W3C Process Document</ a > . </ p >
1537
+ < p > This document is governed by the < a href ="https://www.w3.org/2019 /Process-20190301 / " id ="w3c_process_revision "> 1 March 2019 W3C Process Document</ a > . </ p >
1538
1538
< p > </ p >
1539
1539
</ div >
1540
1540
< div data-fill-with ="at-risk "> </ div >
@@ -1717,7 +1717,7 @@ <h2 class="heading settled" data-level="4" id="model"><span class="secno">4. </s
1717
1717
due to differences in detection method, sensor construction, etc.</ p >
1718
1718
< h2 class ="heading settled " data-level ="5 " id ="api "> < span class ="secno "> 5. </ span > < span class ="content "> API</ span > < a class ="self-link " href ="#api "> </ a > </ h2 >
1719
1719
< h3 class ="heading settled " data-level ="5.1 " id ="ambient-light-sensor-interface "> < span class ="secno "> 5.1. </ span > < span class ="content "> The AmbientLightSensor Interface</ span > < a class ="self-link " href ="#ambient-light-sensor-interface "> </ a > </ h3 >
1720
- < pre class ="idl highlight def "> [< dfn class ="idl-code " data-dfn-for ="AmbientLightSensor " data-dfn-type ="constructor " data-export data-lt ="AmbientLightSensor(sensorOptions)|AmbientLightSensor() " id ="dom-ambientlightsensor-ambientlightsensor "> < code > < c- g > Constructor</ c- > </ code > < a class ="self-link " href ="#dom-ambientlightsensor-ambientlightsensor "> </ a > </ dfn > (< c- b > optional</ c- > < a class ="n " data-link-type ="idl-name " href ="https://w3c.github.io/sensors/#dictdef-sensoroptions " id ="ref-for-dictdef-sensoroptions "> < c- n > SensorOptions</ c- > </ a > < dfn class ="idl-code " data-dfn-for ="AmbientLightSensor/AmbientLightSensor(sensorOptions) " data-dfn-type ="argument " data-export id ="dom-ambientlightsensor-ambientlightsensor-sensoroptions-sensoroptions "> < code > < c- g > sensorOptions</ c- > </ code > < a class ="self-link " href ="#dom-ambientlightsensor-ambientlightsensor-sensoroptions-sensoroptions "> </ a > </ dfn > ), < a class ="idl-code " data-link-type ="extended-attribute " href ="https://heycam.github.io/webidl/#SecureContext " id ="ref-for-SecureContext "> < c- g > SecureContext</ c- > </ a > , < a class ="idl-code " data-link-type ="extended-attribute " href ="https://heycam.github.io/webidl/#Exposed " id ="ref-for-Exposed "> < c- g > Exposed</ c- > </ a > =< c- n > Window</ c- > ]
1720
+ < pre class ="idl highlight def "> [< dfn class ="idl-code " data-dfn-for ="AmbientLightSensor " data-dfn-type ="constructor " data-export data-lt ="AmbientLightSensor(sensorOptions)|AmbientLightSensor() " id ="dom-ambientlightsensor-ambientlightsensor "> < code > < c- g > Constructor</ c- > </ code > < a class ="self-link " href ="#dom-ambientlightsensor-ambientlightsensor "> </ a > </ dfn > (< c- b > optional</ c- > < a class ="n " data-link-type ="idl-name " href ="https://w3c.github.io/sensors/#dictdef-sensoroptions " id ="ref-for-dictdef-sensoroptions "> < c- n > SensorOptions</ c- > </ a > < dfn class ="idl-code " data-dfn-for ="AmbientLightSensor/AmbientLightSensor(sensorOptions) " data-dfn-type ="argument " data-export id ="dom-ambientlightsensor-ambientlightsensor-sensoroptions-sensoroptions "> < code > < c- g > sensorOptions</ c- > </ code > < a class ="self-link " href ="#dom-ambientlightsensor-ambientlightsensor-sensoroptions-sensoroptions "> </ a > </ dfn > = {}), < a class ="idl-code " data-link-type ="extended-attribute " href ="https://heycam.github.io/webidl/#SecureContext " id ="ref-for-SecureContext "> < c- g > SecureContext</ c- > </ a > , < a class ="idl-code " data-link-type ="extended-attribute " href ="https://heycam.github.io/webidl/#Exposed " id ="ref-for-Exposed "> < c- g > Exposed</ c- > </ a > =< c- n > Window</ c- > ]
1721
1721
< c- b > interface</ c- > < dfn class ="dfn-paneled idl-code " data-dfn-type ="interface " data-export id ="ambientlightsensor "> < code > < c- g > AmbientLightSensor</ c- > </ code > </ dfn > : < a class ="n " data-link-type ="idl-name " href ="https://w3c.github.io/sensors/#sensor " id ="ref-for-sensor① "> < c- n > Sensor</ c- > </ a > {
1722
1722
< c- b > readonly</ c- > < c- b > attribute</ c- > < a class ="idl-code " data-link-type ="interface " href ="https://heycam.github.io/webidl/#idl-double " id ="ref-for-idl-double "> < c- b > double</ c- > </ a > ? < dfn class ="dfn-paneled idl-code " data-dfn-for ="AmbientLightSensor " data-dfn-type ="attribute " data-export data-readonly data-type ="double? " id ="dom-ambientlightsensor-illuminance "> < code > < c- g > illuminance</ c- > </ code > </ dfn > ;
1723
1723
};
@@ -1757,7 +1757,7 @@ <h2 class="heading settled" data-level="7" id="automation"><span class="secno">7
1757
1757
This section extends the < a data-link-type ="dfn " href ="https://w3c.github.io/sensors/#automation " id ="ref-for-automation "> automation</ a > section defined in the Generic Sensor API < a data-link-type ="biblio " href ="#biblio-generic-sensor "> [GENERIC-SENSOR]</ a > to provide mocking information about the ambient light levels for the purposes of testing a user agent’s
1758
1758
implementation of < a data-link-type ="dfn " href ="#ambient-light-sensor " id ="ref-for-ambient-light-sensor② "> Ambient Light Sensor</ a > .
1759
1759
< h3 class ="heading settled " data-level ="7.1 " id ="mock-ambient-light-sensor-type "> < span class ="secno "> 7.1. </ span > < span class ="content "> Mock Sensor Type</ span > < a class ="self-link " href ="#mock-ambient-light-sensor-type "> </ a > </ h3 >
1760
- < p > The < code class ="idl "> < a data-link-type ="idl " href ="#ambientlightsensor " id ="ref-for-ambientlightsensor⑥ "> AmbientLightSensor</ a > </ code > class has an associated < a data-link-type ="dfn " href ="https://w3c.github.io/sensors/#mock-sensor-type " id ="ref-for-mock-sensor-type "> mock sensor type</ a > which is < a class ="idl-code " data-link-type ="enum-value " href ="https://w3c.github.io/sensors/#dom-mocksensortype-ambient-light " id ="ref-for-dom-mocksensortype-ambient-light "> "ambient-light"</ a > , its < a data-link-type ="dfn " href ="https://w3c.github.io/sensors/#mock-sensor-reading-values " id ="ref-for-mock-sensor-reading-values "> mock sensor reading values</ a > dictionary is defined as follow :</ p >
1760
+ < p > The < code class ="idl "> < a data-link-type ="idl " href ="#ambientlightsensor " id ="ref-for-ambientlightsensor⑥ "> AmbientLightSensor</ a > </ code > class has an associated < a data-link-type ="dfn " href ="https://w3c.github.io/sensors/#mock-sensor-type " id ="ref-for-mock-sensor-type "> mock sensor type</ a > which is < a class ="idl-code " data-link-type ="enum-value " href ="https://w3c.github.io/sensors/#dom-mocksensortype-ambient-light " id ="ref-for-dom-mocksensortype-ambient-light "> "ambient-light"</ a > , its < a data-link-type ="dfn " href ="https://w3c.github.io/sensors/#mock-sensor-reading-values " id ="ref-for-mock-sensor-reading-values "> mock sensor reading values</ a > dictionary is defined as follows :</ p >
1761
1761
< pre class ="idl highlight def "> < c- b > dictionary</ c- > < dfn class ="idl-code " data-dfn-type ="dictionary " data-export id ="dictdef-ambientlightreadingvalues "> < code > < c- g > AmbientLightReadingValues</ c- > </ code > < a class ="self-link " href ="#dictdef-ambientlightreadingvalues "> </ a > </ dfn > {
1762
1762
< c- b > required</ c- > < a class ="idl-code " data-link-type ="interface " href ="https://heycam.github.io/webidl/#idl-double " id ="ref-for-idl-double① "> < c- b > double</ c- > </ a > ? < dfn class ="idl-code " data-dfn-for ="AmbientLightReadingValues " data-dfn-type ="dict-member " data-export data-type ="double? " id ="dom-ambientlightreadingvalues-illuminance "> < code > < c- g > illuminance</ c- > </ code > < a class ="self-link " href ="#dom-ambientlightreadingvalues-illuminance "> </ a > </ dfn > ;
1763
1763
};
@@ -2015,13 +2015,13 @@ <h2 class="no-num no-ref heading settled" id="references"><span class="content">
2015
2015
< h3 class ="no-num no-ref heading settled " id ="normative "> < span class ="content "> Normative References</ span > < a class ="self-link " href ="#normative "> </ a > </ h3 >
2016
2016
< dl >
2017
2017
< dt id ="biblio-generic-sensor "> [GENERIC-SENSOR]
2018
- < dd > Rick Waldron; Mikhail Pozdnyakov; Alexander Shalamov. < a href ="https://w3c.github.io/sensors/ "> Generic Sensor API</ a > . URL: < a href ="https://w3c.github.io/sensors/ "> https://w3c.github.io/sensors/</ a >
2018
+ < dd > Mikhail Pozdnyakov; Alexander Shalamov; Tobie Langel . < a href ="https://w3c.github.io/sensors/ "> Generic Sensor API</ a > . URL: < a href ="https://w3c.github.io/sensors/ "> https://w3c.github.io/sensors/</ a >
2019
2019
< dt id ="biblio-permissions "> [PERMISSIONS]
2020
2020
< dd > Mounir Lamouri; Marcos Caceres; Jeffrey Yasskin. < a href ="https://w3c.github.io/permissions/ "> Permissions</ a > . URL: < a href ="https://w3c.github.io/permissions/ "> https://w3c.github.io/permissions/</ a >
2021
2021
< dt id ="biblio-rfc2119 "> [RFC2119]
2022
2022
< dd > S. Bradner. < a href ="https://tools.ietf.org/html/rfc2119 "> Key words for use in RFCs to Indicate Requirement Levels</ a > . March 1997. Best Current Practice. URL: < a href ="https://tools.ietf.org/html/rfc2119 "> https://tools.ietf.org/html/rfc2119</ a >
2023
2023
< dt id ="biblio-webidl "> [WEBIDL]
2024
- < dd > Cameron McCormack; Boris Zbarsky; Tobie Langel . < a href ="https://heycam.github.io/webidl/ "> Web IDL</ a > . URL: < a href ="https://heycam.github.io/webidl/ "> https://heycam.github.io/webidl/</ a >
2024
+ < dd > Boris Zbarsky. < a href ="https://heycam.github.io/webidl/ "> Web IDL</ a > . URL: < a href ="https://heycam.github.io/webidl/ "> https://heycam.github.io/webidl/</ a >
2025
2025
</ dl >
2026
2026
< h3 class ="no-num no-ref heading settled " id ="informative "> < span class ="content "> Informative References</ span > < a class ="self-link " href ="#informative "> </ a > </ h3 >
2027
2027
< dl >
@@ -2033,7 +2033,7 @@ <h3 class="no-num no-ref heading settled" id="informative"><span class="content"
2033
2033
< dd > < a href ="http://www.bipm.org/en/publications/si-brochure/ "> SI Brochure: The International System of Units (SI), 8th edition</ a > . 2014. URL: < a href ="http://www.bipm.org/en/publications/si-brochure/ "> http://www.bipm.org/en/publications/si-brochure/</ a >
2034
2034
</ dl >
2035
2035
< h2 class ="no-num no-ref heading settled " id ="idl-index "> < span class ="content "> IDL Index</ span > < a class ="self-link " href ="#idl-index "> </ a > </ h2 >
2036
- < pre class ="idl highlight def "> [< a href ="#dom-ambientlightsensor-ambientlightsensor "> < code > < c- g > Constructor</ c- > </ code > </ a > (< c- b > optional</ c- > < a class ="n " data-link-type ="idl-name " href ="https://w3c.github.io/sensors/#dictdef-sensoroptions " id ="ref-for-dictdef-sensoroptions② "> < c- n > SensorOptions</ c- > </ a > < a href ="#dom-ambientlightsensor-ambientlightsensor-sensoroptions-sensoroptions "> < code > < c- g > sensorOptions</ c- > </ code > </ a > ), < a class ="idl-code " data-link-type ="extended-attribute " href ="https://heycam.github.io/webidl/#SecureContext " id ="ref-for-SecureContext① "> < c- g > SecureContext</ c- > </ a > , < a class ="idl-code " data-link-type ="extended-attribute " href ="https://heycam.github.io/webidl/#Exposed " id ="ref-for-Exposed① "> < c- g > Exposed</ c- > </ a > =< c- n > Window</ c- > ]
2036
+ < pre class ="idl highlight def "> [< a href ="#dom-ambientlightsensor-ambientlightsensor "> < code > < c- g > Constructor</ c- > </ code > </ a > (< c- b > optional</ c- > < a class ="n " data-link-type ="idl-name " href ="https://w3c.github.io/sensors/#dictdef-sensoroptions " id ="ref-for-dictdef-sensoroptions② "> < c- n > SensorOptions</ c- > </ a > < a href ="#dom-ambientlightsensor-ambientlightsensor-sensoroptions-sensoroptions "> < code > < c- g > sensorOptions</ c- > </ code > </ a > = {} ), < a class ="idl-code " data-link-type ="extended-attribute " href ="https://heycam.github.io/webidl/#SecureContext " id ="ref-for-SecureContext① "> < c- g > SecureContext</ c- > </ a > , < a class ="idl-code " data-link-type ="extended-attribute " href ="https://heycam.github.io/webidl/#Exposed " id ="ref-for-Exposed① "> < c- g > Exposed</ c- > </ a > =< c- n > Window</ c- > ]
2037
2037
< c- b > interface</ c- > < a href ="#ambientlightsensor "> < code > < c- g > AmbientLightSensor</ c- > </ code > </ a > : < a class ="n " data-link-type ="idl-name " href ="https://w3c.github.io/sensors/#sensor " id ="ref-for-sensor①① "> < c- n > Sensor</ c- > </ a > {
2038
2038
< c- b > readonly</ c- > < c- b > attribute</ c- > < a class ="idl-code " data-link-type ="interface " href ="https://heycam.github.io/webidl/#idl-double " id ="ref-for-idl-double② "> < c- b > double</ c- > </ a > ? < a data-readonly data-type ="double? " href ="#dom-ambientlightsensor-illuminance "> < code > < c- g > illuminance</ c- > </ code > </ a > ;
2039
2039
};
0 commit comments