Day 33: Mathematical expressions in min(), max(), clamp()

from blog Manuel Matuzović - Blog, | ↗ original
↗ original
You can use full math expressions in the comparison functions min(), max(), and clamp(). There’s no need to nest a calc() function inside.Writing… div { border: max(20px, calc(1vw + 10px)) solid; } …is the same as writing… div { border: max(20px, 1vw + 10px) solid; } You can also use custom properties. .var { --extra: 10px; border-width:...