Skip to content
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

Implement o-ratio with CSS native aspect-ratio #16

Open
psolbach opened this issue Jun 13, 2022 · 0 comments
Open

Implement o-ratio with CSS native aspect-ratio #16

psolbach opened this issue Jun 13, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@psolbach
Copy link
Member

The o-ratio component uses static classes for different ratios. A more flexible alternative would be the native CSS aspect-ratio in combination with custom properties. Browser coverage is now very good: https://caniuse.com/mdn-css_properties_aspect-ratio

Example: https://jsfiddle.net/peterklostermann/c3uxh5Lt/42/

@psolbach psolbach added the enhancement New feature or request label Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant