mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-08 16:12:23 +02:00
In cases where a script assigns `x = video.currentTime = y`, we are expected to have a result of `x === y`, even if the video's duration is less than y. According to the spec, this happens because the official playback position is set to `y` in this case, but since we are following implementations in making `currentTime` immediately return the position on the valid media timeline, we have to specifically return the unchanged value from the setter. See: https://github.com/whatwg/html/issues/11773
111 KiB
111 KiB