Repository navigation
Conversation
🦋 Changeset detectedLatest commit: c893e98 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
| function cssProperty(property) { | ||
| const width = '20px'; | ||
| return css\`.foo{font-size:1rem;width:\${width};color:\${property}}\`; | ||
| return css\`.foo{font-size:1rem;width:\${width}color:\${property}}\`; |
There was a problem hiding this comment.
Regression in clean-css v5.3.3
I don't mind fixing this however...
clean-css is not maintained anymore. Can the Lit team fork clean-css and maintain it or how should we proceed?
There was a problem hiding this comment.
I've also seen related issues with clean-css. Modern css features like@container and native nesting are broken after being minified. I have a half-completed branch with a replacement css minify strategy, using another library, that I could move forward with, that does fix all these issues and provides greater flexibility. I wasn't sure if there was interest for an update, but it seems like yes.
There was a problem hiding this comment.
@bencbradshaw Sounds good to me 👍
I think that would be a great update since container queries and css nesting are fully supported on all major browsers. We should be able use them. 🙂
There was a problem hiding this comment.
@cadamsdev see this PR I just put up, as an alternative
#5208
There was a problem hiding this comment.
@bencbradshaw Awesome thanks for doing that. I'll close this PR since I think switching to lightningcss is a better approach 😊
Fixes #5207