mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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.
10 lines
388 B
Plaintext
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
|