question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

background-image image-set url issue

See original GitHub issue

before

.style {
  background-image: image-set(
    url("//s1.server.com/img.png") 1x,
    url("//s1.server.com/img@2x.png") 2x
  );
}

after

.style{background-image:image-set(
    url("//s1server.com/img.png") 1x,
    url("//s1server.com/img@2x.png") 2x
  )}

//s1.server.com/img.png” —> “//s1server.com/img.png

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
AlleeXcommented, Mar 10, 2017

“/clean-css/lib/optimizer/level-1/optimize.js”

selection_204

2reactions
jakubpawlowiczcommented, Mar 13, 2017

Oops, sorry about this. Fix is coming!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix CSS background-image not working | HTML/CSS
1. Check that your CSS file is linked correctly in your HTML file. In order for your CSS styles to get loaded in...
Read more >
background-image - CSS: Cascading Style Sheets | MDN
The background-image CSS property sets one or more background images on an element.
Read more >
CSS Background Image Not Working - Position Is Everything
It is often very difficult to work with background images in CSS. This causes problems like CSS background-image not working, background-image URL not...
Read more >
CSS background-image not working - Stack Overflow
I have tried your code and found that if we put background-image: url(image.png); in btn-pToolName and change color:#000000 . it displays ...
Read more >
Responsive background images with image-set, the srcset for ...
Defining an image-set for a background-image url is easy if we know how to use srcset attributes for img and source elements. A...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found