[csswg-drafts] [css-sizing-4] Decimals in intrinsic sizes (#4009)

scottkellum has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-sizing-4] Decimals in intrinsic sizes  ==
[https://drafts.csswg.org/css-sizing-4/#aspect-ratio](CSS Sizing 4, Aspect Ratio)

The spec looks like it currently requires values to be written in fraction format: `aspect-ratio: 1/1`

It would be nice to be able to write these as decimals or integers as well. For example, `1/1` can be simplified to `1`. So `aspect-ratio: 1` would be valid as well.

```css
.square {
  aspect-ratio: 1/1;
  aspect-ratio: 1;
}

.double-wide {
  aspect-ratio: 2/1;
  aspect-ratio: 2;
}

.golden-ratio {
  aspect-ratio: 1.618;
}
```

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4009 using your GitHub account

Received on Wednesday, 5 June 2019 21:04:05 UTC