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
CSS variables default values shouldn't have their units removed because they might be used in calc expressions.
CSS calc is very sensitive to units and quite often if the units are not specified, the whole expression becomes invalid.
Input:
html {
--admin-bar-fixed:var(--wp-admin--admin-bar--height,0px);
scroll-padding:calc(var(--admin-bar-fixed) +60px) 0px0px0px;
}
Output (calc becomes invalid because it's now trying to 0 + 60px):
Seems like this is fixed.
I get the following output: html{--admin-bar-fixed:var(--wp-admin--admin-bar--height, 0px);scroll-padding:calc(var(--admin-bar-fixed) + 60px) 0 0 0}
CSS variables default values shouldn't have their units removed because they might be used in
calc
expressions.CSS
calc
is very sensitive to units and quite often if the units are not specified, the whole expression becomes invalid.Input:
Output (calc becomes invalid because it's now trying to
0 + 60px
):Expected output (calc is valid
0px + 60px
):The text was updated successfully, but these errors were encountered: