Re: [csswg-drafts] [css-values] Iverson bracket functions: if(), media(), supports(), defined() (#4731)

If everything is in place except `if()` wouldn't the custom func just be something like `registerCustomFunc("--if", (p, t, f) => p ? t : f);`? (Ignoring the specifics of how funcs are registered and what additional metadata needs to be provided, etc.).

-- 
GitHub Notification of comment by jimmyfrasche
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4731#issuecomment-583127531 using your GitHub account

Received on Thursday, 6 February 2020 21:49:12 UTC