Skip to content
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

No image width/height attribute values for SVG files #923

Open
gyurmey2 opened this issue Aug 7, 2023 · 0 comments
Open

No image width/height attribute values for SVG files #923

gyurmey2 opened this issue Aug 7, 2023 · 0 comments

Comments

@gyurmey2
Copy link

gyurmey2 commented Aug 7, 2023

What version of Breakdance are you using?

v1.4.1

Reproduction Steps

  1. Add any image in SVG format.
  2. Enter the width and height for the image, though it doesn't matter.
  3. Check the HTML source code.

The resulting code

<figure class="breakdance-image breakdance-image--384">
   <div class="breakdance-image-container">
   	<div class="breakdance-image-clip">
   		<img class="breakdance-image-object" src="/../sample-image.svg"
width="" height="" alt="Sample image">
   	</div>
   </div>
</figure>

+ live example with Breadance and Gutenberg.

By the way, it's worth adding decoding="async" to all images (for better performance).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants