/* property: sign( expression ) */
top: sign(20vh - 100px);`sign()` CSS function / notebook
`sign()` CSS function
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
div {
background-position: calc(sign(10%) * 1px);
}div {
position: absolute;
top: calc(100px * sign(var(--value)));
}