mirror of
https://github.com/servo/servo
synced 2026-05-14 02:47:14 +02:00
Queuing a media element task given the media element to fire an event named `resize` at the media element shoud be done: - upon the initial `metadata` event from the media engine https://html.spec.whatwg.org/multipage/#loading-the-media-resource:event-media-resize - whenever the video dimensions are changed (readyState is not `HAVE_NOTHING`) https://html.spec.whatwg.org/multipage/#the-video-element:event-media-resize See https://html.spec.whatwg.org/multipage/#event-media-resize Testing: Added new test to confirm `resize` event ordering - html/semantics/embedded-content/media-elements/event_order_durationchange_resize_loadedmetadata.html Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>