Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Conversation

@bradlc
Copy link
Contributor

@bradlc bradlc commented Mar 15, 2021

This PR adds support for calc() within arbitrary values:

<div class="w-[calc(100%+1rem)]"></div>
<div class="w-[calc(-200px/-100px)]"></div>
/* Output */
.w-\[calc\(100\%\+1rem\)\] {
  width: calc(100% + 1rem);
}
.w-\[calc\(-200px\/-10px\)\] {
  width: calc(-200px / -10px);
}

@adamwathan adamwathan merged commit daeadb4 into master Mar 15, 2021
@adamwathan adamwathan deleted the calc branch March 15, 2021 16:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants