mirror of
https://github.com/servo/servo
synced 2026-05-08 16:12:15 +02:00
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: https://github.com/servo/servo/issues/34496 Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>