- From: Marcos Cáceres <notifications@github.com>
- Date: Mon, 04 Feb 2019 01:51:08 -0800
- To: w3c/screen-orientation <screen-orientation@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/screen-orientation/pull/144/review/198911552@github.com>
marcoscaceres commented on this pull request.
> @@ -404,6 +403,58 @@ <h2>
handler event type</a> is <code>"change"</code>.
</p>
</section>
+ <section>
+ <h2>
+ Extensions to the <a>document</a> interface
+ </h2>
+ <section>
```suggestion
<p>
This specification adds the following internal slots to the <a>Document</a> object.
</p>
<section>
```
> + <td>
+ <dfn>[[\defaultOrientation]]</dfn>
+ </td>
+ <td>
+ The set of orientations to which the screen orientation is
+ locked when not explicitly locked by this API or any other
+ means.
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <dfn>[[\orientationPendingPromise]]</dfn>
+ </td>
+ <td>
+ Initially set to <code>null</code> this is a promise whose
+ associated operation is to lock the screen orientation.
Maybe:
```HTML
Either <code>null</code> or a <a>promise</a>. When assigned a <a>Promise</a>,
that promise represents a request to lock the screen to one of the supported orientations.
The promise resolves after locking the orientation succeeds or rejects locking fails.
```
> + <th>
+ Internal Slot
+ </th>
+ <th>
+ Description (non-normative)
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ <dfn>[[\orientationLock]]</dfn>
+ </td>
+ <td>
+ A <a>document</a>'s <a>orientation lock</a> is represented by
+ an unordered set of <a>orientationType</a>.
```suggestion
an <a data-cite="infra#ordered-set">unordered set</a> of <a>orientationType</a>.
```
> @@ -646,25 +695,32 @@ <h2>
<a><code>OrientationLockType</code></a> enum.
</p>
<p>
- A <a>document</a>'s <dfn>orientation lock</dfn> is the orientation
- lock that applies on its <a>top-level browsing context</a>. An
- orientation lock is an unordered set of <a>OrientationType</a>.
+ The <a>[[\orientationLock]]</a> internal slot represents the
This should be where [[\orientationLock]] is defined, I think.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/screen-orientation/pull/144#pullrequestreview-198911552
Received on Monday, 4 February 2019 09:51:30 UTC