Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 461 Bytes

File metadata and controls

29 lines (21 loc) · 461 Bytes

function-calc-no-unspaced-operator

Disallow an unspaced operator within calc functions.

a { top: calc(1px + 2px); }
/**               ↑
 * The space around this operator */

The following patterns are considered warnings:

a { top: calc(1px+2px); }
a { top: calc(1px+ 2px); }

The following patterns are not considered warnings:

a { top: calc(1px + 2px); }
a { top: calc(calc(1em * 2) / 3); }