You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a value of a dimension token that would normally be transformed by the size/rem encounters a negative number, it's skipped and not transformed. size/px for example, doesn't seem to have this issue.
From what I can tell, this issue is due to a check in size/rem, that is specific to that transform.
That said, I think doing parseFloat removes units from stringified numbers already which kinda means we may not need to worry about doing a check whether the value already has a unit. It gets stripped anyways by parseFloat. This is why size/px works and isn't bugged. We should add plenty of tests though to ensure we don't make false assumptions about the parseFloat stripping units behavior
Description
When a value of a
dimension
token that would normally be transformed by thesize/rem
encounters a negative number, it's skipped and not transformed.size/px
for example, doesn't seem to have this issue.From what I can tell, this issue is due to a check in
size/rem
, that is specific to that transform.Reproduction
Input file
json/nested
output withsize/rem
json/nested
output withsize/px
The text was updated successfully, but these errors were encountered: