Re: [csswg-drafts] [css-grid][css-sizing] Aspect Ratio (#333)

@bramus 

I think people have circled around permutations of this idea. I think where it starts to break down is combinations like:
```css
.box {
  width:  calc(val(height) * 9 / 16);
  height: calc(val(width) * 16 / 9);
}
```
However, IIRC, custom properties have some sort of algorithm to break recursion, so that this is valid:
```css
.box {
  --width:  calc(var(--height) * 9 / 16);
  --height: calc(var(--width) * 16 / 9);
}
```
I can't recall the algorithm, but I think it has something to do with figuring out the computed value first, so maybe this would work as well?

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

Received on Tuesday, 27 August 2019 22:37:51 UTC