Skip to content

Commit

Permalink
bridge: fix the handling of colors with percentage values in alpha ch…
Browse files Browse the repository at this point in the history
…annel
  • Loading branch information
carlosame committed Aug 8, 2024
1 parent e8afce3 commit 2499876
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ private static float resolveAlphaComponent(Value v) {
case CSSPrimitiveValue.CSS_PERCENTAGE:
f = v.getFloatValue();
f = (f > 100f) ? 100f : (f < 0f) ? 0f : f;
return f;
return f * 0.01f;
case CSSPrimitiveValue.CSS_NUMBER:
f = v.getFloatValue();
f = (f > 1f) ? 1f : (f < 0f) ? 0f : f;
Expand Down

0 comments on commit 2499876

Please sign in to comment.