mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
htmlvideoelement: Fix poster frame processing algorithm (#37533)
According to HTML specification the poster attribute determines the element's poster frame (regardless of the value of the element's show poster flag). https://html.spec.whatwg.org/multipage/#poster-frame So the poster frame and the show poster flag is orthogonal to each other, the latest one only controls when browser should display the poster frame and should do not block accepting video frames from media pipeline (e.g. on new_preroll callback from video sink). During layout the video element should select the current frame which will be presented based on first matching condition from the list: https://html.spec.whatwg.org/multipage/#the-video-element:the-video-element-7 Testing: Improvements in the following WPT tests - html/canvas/element/manual/imagebitmap/createImageBitmap* - html/semantics/embedded-content/the-canvas-element/* Fixes: #37165 --------- Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
d0100797e8
commit
06b5422abf
8 changed files with 70 additions and 112 deletions
|
@ -2,23 +2,5 @@
|
|||
[cross-origin SVGImageElement: Setting fillStyle to an origin-unclean pattern makes the canvas origin-unclean]
|
||||
expected: FAIL
|
||||
|
||||
[cross-origin HTMLVideoElement: Setting fillStyle to an origin-unclean pattern makes the canvas origin-unclean]
|
||||
expected: FAIL
|
||||
|
||||
[redirected to cross-origin HTMLVideoElement: Setting fillStyle to an origin-unclean pattern makes the canvas origin-unclean]
|
||||
expected: FAIL
|
||||
|
||||
[redirected to same-origin HTMLVideoElement: Setting fillStyle to an origin-unclean pattern makes the canvas origin-unclean]
|
||||
expected: FAIL
|
||||
|
||||
[cross-origin SVGImageElement: Setting fillStyle to an origin-unclean offscreen canvas pattern makes the canvas origin-unclean]
|
||||
expected: FAIL
|
||||
|
||||
[cross-origin HTMLVideoElement: Setting fillStyle to an origin-unclean offscreen canvas pattern makes the canvas origin-unclean]
|
||||
expected: FAIL
|
||||
|
||||
[redirected to cross-origin HTMLVideoElement: Setting fillStyle to an origin-unclean offscreen canvas pattern makes the canvas origin-unclean]
|
||||
expected: FAIL
|
||||
|
||||
[redirected to same-origin HTMLVideoElement: Setting fillStyle to an origin-unclean offscreen canvas pattern makes the canvas origin-unclean]
|
||||
expected: FAIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue