threepointone/glamor

Is content:url() supported?

Closed this issue · 3 comments

Just noticed a small issue that I believe is a bug.

The following CSS:

css={{
  ':after': {
    content: '" " url(images/some-image.png)'
  }
}}

Is incorrectly converted by Glamor (2.20.29) to:

.css-foo:after {
  content: "url(images/some-image.png)";
}

When it should be:

.css-foo:after {
  content: " " url(images/some-image.png)`;
}

Removing the " " prefix yields the same unexpected result:

The following CSS:

css={{
  ':after': {
    content: 'url(images/some-image.png)'
  }
}}

Becomes:

.css-foo:after {
  content: "url(images/some-image.png)";
}

Instead of:

.css-foo:after {
  content: url(images/some-image.png)`;
}

fixed in 2.20.30

please reopen if this isn't fixed :)

Ridiculously fast 😅 It looks like the correct CSS is being generated now! Thanks!!