Skip to content

Commit

Permalink
Merge pull request #78 from rakuco/use-webidl-getter-convention
Browse files Browse the repository at this point in the history
editorial: Use Web IDL's definition conventions for getters.
  • Loading branch information
anssiko authored May 27, 2022
2 parents b91297a + f537496 commit 632fa60
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,11 @@ To construct an {{AmbientLightSensor}} object the user agent must invoke the

### The illuminance attribute ### {#ambient-light-sensor-reading-attribute}

The <a attribute for="AmbientLightSensor">illuminance</a> attribute of the {{AmbientLightSensor}}
interface represents the [=current light level=] and returns the result of invoking
[=get value from latest reading=] with `this` and "illuminance" as arguments.
The {{AmbientLightSensor/illuminance}} getter steps are:

1. Let |illuminance| be the result of invoking [=get value from latest
reading=] with [=this=] and "illuminance" as arguments.
1. Return |illuminance|.

Abstract Operations {#abstract-operations}
===================
Expand Down

0 comments on commit 632fa60

Please sign in to comment.