Don't output unparsable arbitrary values (#7789)

* Refactor

* Don’t output unparsable arbitrary values

* Update changelog
This commit is contained in:
Jordan Pittman 2022-03-08 12:43:06 -05:00 • committed by GitHub
parent c6097d59fc
commit 68d896bbbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 76 additions and 42 deletions

View file

@ -370,3 +370,17 @@ it('should be possible to read theme values in arbitrary values (with quotes) wh
`)
})
})
it('should not output unparsable arbitrary CSS values', () => {
let config = {
content: [
{
raw: 'let classes = `w-[${sizes.width}]`',
},
],
}
return run('@tailwind utilities', config).then((result) => {
return expect(result.css).toMatchFormattedCss(``)
})
})