Skip to content

Commit d6acf93

Browse files
authored
Merge pull request #53 from rakuco/minor-proofreading
editorial: Minor proof-reading.
2 parents f71170d + a55144c commit d6acf93

File tree

2 files changed

+570
-312
lines changed

2 files changed

+570
-312
lines changed

index.bs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Examples {#examples}
9191

9292
<div class="example">
9393
In this simple example, ambient light sensor is created with
94-
default configuration. Whenever new [=sensor readings|reading=] is available,
94+
default configuration. Whenever a new [=sensor readings|reading=] is available,
9595
it is printed to the console.
9696

9797
<pre highlight="js">
@@ -103,10 +103,10 @@ Examples {#examples}
103103
</div>
104104

105105
<div class="example">
106-
In this example, exposure value (EV) at ISO 100 is calculated from
106+
In this example, the exposure value (EV) at ISO 100 is calculated from
107107
the ambient light [=sensor readings=]. Initially, we check that the user
108108
agent has permissions to access ambient light [=sensor readings=]. Then,
109-
{{AmbientLightSensor/illuminance!!attribute}} value is converted to the
109+
the {{AmbientLightSensor/illuminance!!attribute}} value is converted to the
110110
closest exposure value.
111111

112112
<pre highlight="js">
@@ -187,9 +187,9 @@ the device environment. Potential privacy risks include:
187187
- Cross-origin leaks. Light emitted from the screen can be reflected back to
188188
the sensor from nearby reflective surfaces. Malicious sites can embed
189189
resources from different origins and scale the content to display
190-
particular pixels to allow distinguish the contents, pixel by pixel.
191-
- Hijacking browsing history. Styling visited links to allow distinguish the
192-
light levels associated with visited and unvisited links i.e. visited
190+
particular pixels to allow distinguishing the contents, pixel by pixel.
191+
- Hijacking browsing history. Styling visited links to allow distinguishing
192+
the light levels associated with visited and unvisited links i.e. visited
193193
links styled as a block of black screen; white for unvisited.
194194

195195
To mitigate these Ambient Light Sensor specific threats, user agents should
@@ -274,7 +274,7 @@ Use Cases and Requirements {#usecases-requirements}
274274
interprets them to control a game character.
275275

276276
While some of the use cases may benefit from obtaining precise ambient light measurements, the use
277-
cases that convert ambient light level fluctuations to user input events, would benefit from
277+
cases that convert ambient light level fluctuations to user input events would benefit from
278278
higher [=sampling frequency|sampling frequencies=].
279279

280280
Acknowledgements {#acknowledgements}

0 commit comments

Comments
 (0)