June 12th, 2020

Replying to a tweet from @tabatkins

And that can be very handy!

https://www.trysmudford.com/blog/currying-in-css/

The value after the : in the CSS custom property does not have to be valid CSS.

—@trysmudford

51° N , 0° E

Also on Twitter

Reply Retweet Favourite

Responses

💖 Taudry Hepburn 💖

While that’s valid, you can also just nest calc()s, so you can use the intermediate calculations if necessary as well, without having to remember to add a calc() wrapper at point-of-use.

4 Likes

# Liked by Trys Mudford on Friday, June 12th, 2020 at 6:16pm

# Liked by François REMY on Friday, June 12th, 2020 at 6:31pm

# Liked by HTeuMeuLeu on Friday, June 12th, 2020 at 6:40pm

# Liked by 💖 Taudry Hepburn 💖 on Friday, June 12th, 2020 at 11:29pm

Have you published a response to this? :