[Bug]: calc() is removed when it contains unnecessary encompassing brackets
envgap__cssnano__cssnano-1490
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
633e908a9cabd68f44a9c34da13cc46ea6d1abf4- Manifest
packages/cssnano-preset-default/package.json- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
cssnano/cssnano #1490 · read the original issue
### Describe the bug
the calc() function from this declaration. is removed because of the encompassing bracket pair that is not necessary:
`stroke-dasharray: calc((var(--circumference) / var(--number-of-segments)))`
it works when the brackets are removed:
`stroke-dasharray: calc(var(--circumference) / var(--number-of-segments))`
### Expected behaviour
The calc function works regardless of an unnecessary bracket pair
### Steps to reproduce
1. paste this line of code into the cssnano playground (https://cssnano.co/playground/):
`stroke-dasharray: calc((var(--circumference) / var(--number-of-segments)))`
2. Click on `Minimize`
3. Observe that the calc() is removed from the minified line of code
### Version
nuxt 2.16.3
### Preset
(no preset)
### Environment
```shell
System:
OS: macOS 13.3
CPU: (12) arm64 Apple M2 Pro
Memory: 1.80 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
```
### Package details
```shell
cssnano@5.1.15
postcss@8.2.15
```
### Additional context
_No response_04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]