Files
ladybird/Tests/LibWeb/Text/expected/HTML/HTMLVideoElement-resize-event-on-track-change.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

10 lines
388 B
Plaintext

videoTracks change: selectedIndex=0
resize: selectedIndex=0 videoWidth=320 videoHeight=240
loadedmetadata: selectedIndex=0 videoWidth=320 videoHeight=240
--- selecting track 1 ---
videoTracks change: selectedIndex=1
resize: selectedIndex=1 videoWidth=640 videoHeight=480
--- selecting track 0 ---
videoTracks change: selectedIndex=0
resize: selectedIndex=0 videoWidth=320 videoHeight=240