Skip to content

Add support for calc() within a calc.#7

Merged
jaraco merged 4 commits into
jaraco:mainfrom
Hazzard13:main
May 24, 2021
Merged

Add support for calc() within a calc.#7
jaraco merged 4 commits into
jaraco:mainfrom
Hazzard13:main

Conversation

@Hazzard13
Copy link
Copy Markdown

@Hazzard13 Hazzard13 commented Apr 26, 2021

Partially solves this issue: #5

This PR doesn't fully resolve the issue of nested calc functions, but it does allow for the use of a full calc() within a calc, as is compliant. A statement like this still won't work: calc((1 + 1px) * 2), but that CSS can now be updated to calc(calc(1 + 1px) * 2) to get the same rendered result. Some simple tests were added to verify this behaviour as well.

@jaraco jaraco closed this May 24, 2021
@jaraco jaraco reopened this May 24, 2021
@jaraco jaraco merged commit 70820c0 into jaraco:main May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants