mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
The user agent on the `internal play steps` (step 2) must to seek to the earliest possible position if the playback has ended, but the definition of the `ended playback` prevents looping when the loop attribute was added after playback has ended (already registered whatwg html issue). ``` - playback ended (`ended` event) - loop = true - play() (no seeking - playback hasn't ended) ``` Currently this edge case if not yet reflected in the HTML specification so let's do the same as other browsers and ignore the `loop` attribute for `play` seek. See https://html.spec.whatwg.org/multipage/#internal-play-steps See https://github.com/whatwg/html/issues/4487 Testing: Improvements in the following tests - html/semantics/embedded-content/media-elements/playing-the-media-resource/loop-from-ended.tentative.html Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>