[Bug] Missing background styling after dynamically updating the 'src' property
See original GitHub issueOn initial rendering, the avatar property adds the following CSS when the ‘src’ property is set:
background: url("src_path") 0% 0% / 100px 100px no-repeat content-box;
However, if the ‘src’ property is bound to a computed element, which then gets updated after the initial rendering of the avatar element, the CSS background property gets updated to:
background: url("src_path");
Missing 0% 0% / 100px 100px no-repeat content-box;
and causing the image to be displayed incorrectly.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6
Top Results From Across the Web
Backgroundimage is not working in react - Stack Overflow
I am new to react and trying to get background image with inline styling. But it's not working. Showing ...
Read more >Handling common HTML and CSS problems - MDN Web Docs
After the packages have finished installing, try loading up an HTML file and a CSS file: you'll see any issues highlighted with green...
Read more >How to Create CSS Custom Properties That Dynamically ...
Read How to Create CSS Custom Properties That Dynamically Update with React & JavaScript at Space Jelly.
Read more >Preventing Content Reflow From Lazy-Loaded Images
Reflow is a problem because it's a user-blocking operation. It slows down the browser by forcing it to recalculate the layout of any...
Read more >HTML DOM Style backgroundImage Property - W3Schools
The backgroundImage property sets or returns the background image of an element. ... HTML Styles: The background Property ... none, No background image....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s fixed by this https://github.com/eliep/vue-avatar/pull/9
Seems like it