Skip to content

Commit

Permalink
Reverting defaulting of values from WebIDL
Browse files Browse the repository at this point in the history
  • Loading branch information
youennf committed Jan 10, 2024
1 parent 00da359 commit 97980ca
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -890,11 +890,17 @@ interface MediaSession {
If <var>state</var>'s <a dict-member for="MediaPositionState">duration</a> is negative or
<code>NaN</code>, throw a <a exception>TypeError</a>.
</li>
<li>
If <var>state</var>'s <a dict-member for="MediaPositionState">position</a> is not present, set it to zero.
</li>
<li>
If <var>state</var>'s <a dict-member for="MediaPositionState">position</a> is negative or
greater than <a dict-member for="MediaPositionState">duration</a>, throw a
<a exception>TypeError</a>.
</li>
<li>
If <var>state</var>'s <a dict-member for="MediaPositionState">playbackRate</a> is not present, set it to 1.0.
</li>
<li>
If <var>state</var>'s <a dict-member for="MediaPositionState">playbackRate</a> is zero,
throw a <a exception>TypeError</a>.
Expand Down Expand Up @@ -1197,8 +1203,8 @@ dictionary</h2>

dictionary MediaPositionState {
unrestricted double duration;
double playbackRate = 1.0;
double position = 0.0;
double playbackRate;
double position;
};
</pre>

Expand Down

0 comments on commit 97980ca

Please sign in to comment.