-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify behavior when playbackRate is set to unsupported value. #2829
Conversation
Thanks! This looks pretty good as a start but there's no requirements in your text. You want something like:
(The "must" requirement automatically applies to the individual steps in the algorithm and doesn't have to be repeated. Infra has more on this.) |
Thanks for the feedback! I've updated the patch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks much better! Couple minor nits left.
source
Outdated
|
||
<ol> | ||
|
||
<li><p>If the given value is not supported by the user agent, throw a <span>"<code> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll have to wrap before the <span>
. Otherwise it affects the content of the <code>
element.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, could you make it "then throw"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, and done.
source
Outdated
on setting, the user agent must follow these steps:</p> | ||
|
||
<ol> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This newline can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
source
Outdated
|
||
<li><p>Set <code data-x="dom-media-playbackRate">playbackRate</code> to the new value, and change | ||
the playback speed (if the element is <span>potentially playing</span>).</p></li> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This newline can be removed too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Thanks! Updated with your comments. |
Looks good to me. |
…orted value See whatwg/html#2829 for HTML Standard change.
I realize I'm late to respond (was OOTO for the last week), but this does look good to me. |
Still good to know though! |
For #2754. web-platform-tests PR: web-platform-tests/wpt#6522
PTAL, thanks!