After the element is set to width and height, the rendered value is 0
Version
3.0.11
Reproduction link
Steps to reproduce
<video
width="100px"
src="https://media.w3.org/2010/05/sintel/trailer.mp4"
controls
/>
<img
width="100px"
src="https://img-blog.csdnimg.cn/20190323161535761.png"
/>
What is expected?
width and height can work normally
What is actually happening?
<video
width="0"
src="https://media.w3.org/2010/05/sintel/trailer.mp4"
controls
/>
<img
width="0"
src="https://img-blog.csdnimg.cn/20190323161535761.png"
/>
Width must be in pixels, without the unit. This is a native behavior.
Remember to use the forum or the Discord chat to ask questions!