zachleat’s avatarzachleat’s Twitter Archive—№ 28,223

    1. Today I found myself wanting a way to do conditionals with CSS custom properties. flex-basis: (--my-variable ? 0 : 4px) I couldn’t do it with var() fallbacks. Is this possible or being discussed amongst standards folks somewhere? (CSS-in-JS is an answer to the wrong question)
  1. …in reply to @zachleat
    Following up here, the following from @SelenIT2 sent me on the right track! 🏆 @SelenIT2/1187280433039454208 Working solution: codepen.io/zachleat/pen/KKKmqEG