Using /
to make divisions outside of calc
function won’t be supported anymore. Here is an overview of the reason why form the documentation:
Sass currently treats
/
as a division operation in some contexts and a separator in others. This makes it difficult for Sass users to tell what any given/
will mean, and makes it hard to work with new CSS features that use/
as a separator.
You should either use math.div
from sass:math
, as an example like so:
@use "sass:math";
body {
font-size: math.div(50, 16) * 1px;
}
Or use /
inside calc
, as an example like so:
body {
font-size: calc(50 / 16) * 1px;
}