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

Use integer in aspect-ratio #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Use integer in aspect-ratio #20

wants to merge 1 commit into from

Conversation

meduzen
Copy link
Owner

@meduzen meduzen commented Nov 10, 2022

This is a minor enhancement.

PostCSS will adapt to a fractional ratio for browser not supporting the use of a single number. At this time of writing, no browser supports it.

PostCSS will adapt to a fractional [ratio](https://w3c.github.io/csswg-drafts/css-values-4/#ratio-value) for browser not supporting the use of a single number. At this time of writing, no browser supports it.
@meduzen meduzen added the --enhancement New feature or request label Nov 10, 2022
@meduzen meduzen self-assigned this Nov 10, 2022
@what-the-diff
Copy link

what-the-diff bot commented Nov 10, 2022

  • The ratio-is mixin was changed to accept a single number as the second argument.
  • This change allows for more flexibility in defining ratios, and makes it easier to define square ratios (e.g., 1/1).

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

Successfully merging this pull request may close these issues.

None yet

1 participant