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
Result: it changes to e.g. margin: 10;, which is ignored by the browser since it has no units.
It would be better if we automatically tack on units, e.g. margin: 10px;. Icing on the cake would be to automatically remove the unit when scrubbing back to zero.
The text was updated successfully, but these errors were encountered:
I saw the same problem. Note that not all CSS numbers have units (e.g. z-index), so you'll need a lookup table to determine whether value requires units. The line-height property is an intersting case because both numbers and lengths (number+units) are valid.
I don't know if I agree with removing the units when you hit zero, because if the units were not originally "px", then you'll need to manually set it back to what it was. Maybe this feature needs preferences for "strip units when zero" which then requires a "default units" preference.
margin: 0;
Result: it changes to e.g.
margin: 10;
, which is ignored by the browser since it has no units.It would be better if we automatically tack on units, e.g.
margin: 10px;
. Icing on the cake would be to automatically remove the unit when scrubbing back to zero.The text was updated successfully, but these errors were encountered: