html: Add <media> current and official playback positions#40609
Merged
TimvdLippe merged 1 commit intoservo:mainfrom Nov 13, 2025
Merged
Conversation
Follow the HTML specification and split the previous `playback position` to `current playback position` (a time on the media timeline) and `official playbac position` (an approximation of the current playback position that is kept stable while scripts are running) which must be set to `the current playback position` any time the user agent provides a stable state. See https://html.spec.whatwg.org/multipage/#current-playback-position See https://html.spec.whatwg.org/multipage/#official-playback-position Note that at this point, there are no difference between the `current` and `official` playback positions (as the time on the media timeline), except the `seek` case. Testing: Improvements in the following tests - html/semantics/embedded-content/media-elements/seeking/seek-to-max-value.htm - html/semantics/embedded-content/media-elements/seeking/seek-to-negative-time.htm Fixes: servo#34496 Signed-off-by: Andrei Volykhin <[email protected]>
9516a80 to
3c8add9
Compare
|
🔨 Triggering try run (#19330307199) for Linux (WPT) |
TimvdLippe
approved these changes
Nov 13, 2025
Contributor
TimvdLippe
left a comment
There was a problem hiding this comment.
Keep up the good work and nice spec comments!
tharkum
commented
Nov 13, 2025
|
Test results for linux-wpt from try job (#19330307199): Flaky unexpected result (40)
Stable unexpected results that are known to be intermittent (26)
|
|
✨ Try run (#19330307199) succeeded. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow the HTML specification and split the previous
playback positiontocurrent playback position(a time on the media timeline) andofficial playbac position(an approximation of the current playback position that is kept stable while scripts are running) which must be set tothe current playback positionany time the user agent provides a stable state.See https://html.spec.whatwg.org/multipage/#current-playback-position
See https://html.spec.whatwg.org/multipage/#official-playback-position
Note that at this point, there are no difference between the
currentandofficialplayback positions (as the time on the media timeline), except theseekcase.Testing: Improvements in the following tests
Fixes: #34496