-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
img tag attributes 'width, height' rendering with 0 #2801
Comments
The width and height attributes should be in pixels: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/width |
@posva |
it's because in Vue 3, attributes are set as properties: Note that even the attribute should be in pixels without unit: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-width |
Ok,I got the point. |
Version
3.0.4
Reproduction link
https://codesandbox.io/s/pensive-wildflower-coe5n?file=/src/App.vue
Steps to reproduce
What is expected?
Expected as same as vue 2.
What is actually happening?
The value of width and height is
0
It looks very similar to #2677
The text was updated successfully, but these errors were encountered: