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.
14 lines
515 B
Plaintext
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
|