htmlmediaelement: Make dirty element on any intrinsic size changes (#37056)

To properly compute (the video) element's content size for
layout requires to dirty the element on any intrinstic size changes.

Full list of the operations which cause layout invalidation:
- media metadata update (NEW)
- removing "src" attribute
- video frame update
- show poster image

Testing:
html/semantics/embedded-content/the-video-element/intrinsic_sizes.htm
Fixes: https://github.com/servo/servo/issues/34434

Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
This commit is contained in:
Andrei Volykhin 2025-05-21 14:18:24 +03:00 committed by GitHub
parent a5c3d6f075
commit 859a0ffbd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 6 deletions

View file

@ -1,3 +0,0 @@
[intrinsic_sizes.htm]
[default object size after src is removed]
expected: FAIL