mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +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.
13 lines
408 B
Plaintext
13 lines
408 B
Plaintext
resize: videoWidth=320 videoHeight=240
|
|
loadedmetadata: videoWidth=320 videoHeight=240
|
|
--- play ---
|
|
resize: videoWidth=640 videoHeight=480
|
|
ended: videoWidth=640 videoHeight=480
|
|
--- seek to 0 ---
|
|
resize: videoWidth=320 videoHeight=240
|
|
seeked: videoWidth=320 videoHeight=240
|
|
--- seek to end ---
|
|
resize: videoWidth=640 videoHeight=480
|
|
ended: videoWidth=640 videoHeight=480
|
|
seeked: videoWidth=640 videoHeight=480
|