You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aspect-ratio: 3 / 4 is the same as aspect-ratio: 6 / 8, but if they are inconsistent in the codebase, it's difficult to find them both with a single search.
Note that 0.75 is also equivalent, but there is already another rule suggestion for choosing between integers and decimal style:
What is the problem you're trying to solve?
aspect-ratio: 3 / 4
is the same asaspect-ratio: 6 / 8
, but if they are inconsistent in the codebase, it's difficult to find them both with a single search.Note that
0.75
is also equivalent, but there is already another rule suggestion for choosing betweenintegers
anddecimal
style:ratio-notation
#6575What solution would you like to see?
A new rule
ration-simplified
that reports6 / 8
because it can be simplified to3 / 4
because both numerator and the denominator are divisible by 2 (i.e. greatest common divisor is not 1). See also https://stackoverflow.com/questions/7777142/how-to-simplify-a-fraction.The text was updated successfully, but these errors were encountered: