Skip to content

[css-sizing-4] Decimals in intrinsic sizes #4009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
scottkellum opened this issue Jun 5, 2019 · 2 comments
Closed

[css-sizing-4] Decimals in intrinsic sizes #4009

scottkellum opened this issue Jun 5, 2019 · 2 comments

Comments

@scottkellum
Copy link

[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.

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

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

.golden-ratio {
  aspect-ratio: 1.618;
}
@jonjohnjohnson
Copy link

I think this filing is either a duplicate or is at least close enough for you to close this and add your concerns to what you think is be missing over there?

#3757

@scottkellum
Copy link
Author

Thanks @jonjohnjohnson, yes it is, I must have missed that one when looking for duplicates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants