Why does math.div(100, 2) work but 100 / 2 might cause warnings?
In Sass, math.div() is the recommended way to divide numbers to avoid confusion with CSS slash syntax. Using / directly can be ambiguous and cause warnings.
💡 Always use math.div() for division in Sass to get clear numeric results (see render_step 2).
Why doesn't math.pow(2, 3) work directly in CSS without Sass?
CSS does not support math.pow or other math functions natively. Sass calculates these values during compilation, so the browser only sees the final number.
💡 Sass math functions run before browser rendering, so you see only the computed values visually (see render_step 3).
Why is the background color hue limited to 120 instead of 180?
math.min(120, 180) returns the smaller number, 120, so the hue is set to 120, which is green in HSL color space.
💡 Use math.min or math.max to control limits on colors or sizes (see render_step 4).