TLDR Dev · ARTICLES & TUTORIALS
ON INHERITING AND SHARING PROPERTY VALUES
Summary from the TLDR Dev newsletter
CSS doesn't let you set one property based on another's value (like `border-radius: height`), and there's no magic `compute()` function coming. Your best bets right now are to use CSS custom properties if you know the values, `aspect-ratio` to link width/height, `currentColor` to reuse colors, or container query units like `100cqh` to steal parent dimensions.