- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Tue, 12 Nov 2024 21:53:53 +0000
- To: public-css-archive@w3.org
So if I get it right, this is about ```html <!DOCTYPE html> <style>video, img { width: auto; height: auto; aspect-ratio: 1; border: solid; background: cyan }</style> <div style="width: 200px"> <video width="100" height="100"></video> <img width="100" height=100 src="https://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=60"> </div> ``` In Servo we currently match Blink: the video is 300x150, and the image is 0x0 (but unlike Blink, we pass [the video test](http://wpt.live/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/video-aspect-ratio.html)). The difference is because we let image elements with no resource fall back to a 0x0 natural size. The video gets no natural size, so it uses a [default object size](https://drafts.csswg.org/css-images-3/#default-object-size) of 300x150. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10605#issuecomment-2471660887 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 12 November 2024 21:53:54 UTC