Skip to content

Conversation

@RobinMalfait
Copy link
Member

@RobinMalfait RobinMalfait commented Sep 24, 2021

This PR allows you to use bg-[url('...')] or stroke-[url(#...)]

It adds a new regex to detect the bg case, and it will also prevent adding spaces to operators like -.
This is important, otherwise this happens:

.bg-\[url\(\'\.\/path-to-file\.png\'\)\] {
  background-image: url('./path - to - file.png')
}

Fixes: #5197
Fixes: #5398

@RobinMalfait RobinMalfait changed the title support url in arbitrary values Support url in arbitrary values Sep 24, 2021
@RobinMalfait RobinMalfait changed the title Support url in arbitrary values Support URL in arbitrary values Sep 24, 2021
@RobinMalfait RobinMalfait force-pushed the support-url-in-arbitrary-values branch from 57e7435 to bce45d7 Compare September 24, 2021 14:09
@RobinMalfait RobinMalfait merged commit abcd9ac into master Sep 24, 2021
@RobinMalfait RobinMalfait deleted the support-url-in-arbitrary-values branch September 24, 2021 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants