Re: [csswg-drafts] [css-sizing-4] aspect-ratio via width and height attributes doesn't work for <video> (#7524)

I don't know if it's the right place to put this but I ended up on this thread because I had this exact issue. After some testing I found a workaround until it's fixed on the browser level. The idea is to put a transparent svg image as `poster` and then the initial ratio is good... here is an example for a 1000x600 video: 
```HTML
<video width="1000" height="600" poster="data:image/svg+xml;utf8,<svg width='1000' height='600' xmlns='http://www.w3.org/2000/svg'></svg>">
    <source src="video.mp4" type="video/mp4">
</video>
```
Just in case it can help others.

-- 
GitHub Notification of comment by Mushr0000m
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7524#issuecomment-1292146944 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 26 October 2022 14:33:40 UTC