Reproduction
<div class="w-120.5 h-120.5 bg-green-50"></div>
<div class="w-120.1 h-120.5 bg-red-50"></div>
Describe your issue
A central --spacing variable has been introduced, allowing infinite generation of margin, padding, width, height, etc.
| Class |
Styles |
m-<number> |
margin: calc(var(--spacing) * <number>); |
-m-<number> |
margin: calc(var(--spacing) * -<number>); |
From this, I would assume that it should accept any integer and decimal number. However, it only works perfectly with integers and .5 decimals; values like .1, .2, ... .9 do not work.
Note
Tailwind CSS: v4.0.3
Reproduction
Describe your issue
A central
--spacingvariable has been introduced, allowing infinite generation ofmargin,padding,width,height, etc.m-<number>margin: calc(var(--spacing) * <number>);-m-<number>margin: calc(var(--spacing) * -<number>);From this, I would assume that it should accept any integer and decimal number. However, it only works perfectly with integers and
.5decimals; values like.1,.2, ....9do not work.