Files
ladybird/Tests/LibWeb/Text/expected/HTML/HTMLVideoElement-resize-event-on-reload.txt
Zaggy1024 04cc5bced9 LibWeb: Update video elements' natural dimensions during playback
This tightens the implementation of video element sizing to the spec by
implementing two spec concepts:
- The media resource's natural width and height, and
- The video element's natural width and height.
The element's natural dimensions change based on the representation,
which has many inputs, so update checks are triggered from many
locations.

The resize event is fired when the media resource's natural dimensions
change, and the layout is invalidated if the element's natural
dimensions change.

Tests for a few important resize triggers have been added.
2026-04-21 19:11:24 -05:00

14 lines
515 B
Plaintext

initial: videoWidth=0 videoHeight=0
loadstart: videoWidth=0 videoHeight=0
resize: videoWidth=854 videoHeight=480
loadedmetadata: videoWidth=854 videoHeight=480
--- reloading video ---
after reload: videoWidth=0 videoHeight=0
abort: videoWidth=0 videoHeight=0
emptied: videoWidth=0 videoHeight=0
loadstart: videoWidth=0 videoHeight=0
resize: videoWidth=854 videoHeight=480
loadedmetadata: videoWidth=854 videoHeight=480
loadeddata: videoWidth=854 videoHeight=480
after canplaythrough: videoWidth=854 videoHeight=480