/* abs( <calc-sum> ) */
abs(20% - 100px)
abs(var(--gradientAngle))`abs()` CSS function / notebook
`abs()` CSS function
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
h1 {
font-size: abs(var(--font-size));
}div {
--deg: -45deg;
background-image: linear-gradient(abs(var(--deg)), blue, red);
}p {
line-height: max(var(--lh), -1 * var(--lh));
}