Skip to content
#

postcss

Here are 1,982 public repositories matching this topic...

stylelint
tomyo
tomyo commented Mar 19, 2021

Clearly describe the bug
The rule length-zero-no-unit is applying fixes inside level 4 math functions.

This test exercises exactly what it shouldn't happen:

https://github.com/tomyo/stylelint/blob/eb419ef754ac442f9f3b9f7164fccb938b99adb3/lib/rules/length-zero-no-unit/__tests__/index.js#L332

Why?
It converts this:

padding: calc(var(--foo, 0px) + 10px);

Into this:

Improve this page

Add a description, image, and links to the postcss topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the postcss topic, visit your repo's landing page and select "manage topics."

Learn more