@function --used-in-keyframes() { result: 1px; } @function --used-in-nested-conditional() { result: 2px; } @function --fully-processed() { result: 3px; } .processed { width: --fully-processed(); } @keyframes kf { from { width: --used-in-keyframes(); } } .nested { @media (min-width: 0px) { height: --used-in-nested-conditional(); } } /* An unsupported function body is left as-is, so the definitions it references must be kept. */ @function --unsupported-outer() returns { result: --used-by-unsupported-outer(); } @function --used-by-unsupported-outer() { result: 4px; } .unsupported-outer { width: --unsupported-outer(); }