diff --git a/modules/javafx.graphics/src/main/java/javafx/css/converter/FadeoutColorConverter.java b/modules/javafx.graphics/src/main/java/javafx/css/converter/FadeoutColorConverter.java index 81ecc5fe9e..ba37b331f1 100644 --- a/modules/javafx.graphics/src/main/java/javafx/css/converter/FadeoutColorConverter.java +++ b/modules/javafx.graphics/src/main/java/javafx/css/converter/FadeoutColorConverter.java @@ -57,6 +57,7 @@ public Color convert(ParsedValue value, Font font) { ParsedValue[] values = value.getValue(); final Color color = (Color) values[0].convert(font); final Size transparency = (Size) values[1].convert(font); + System.out.println("transpareny.getUnits(): " + transparency.getUnits()); if (transparency.getUnits() != SizeUnits.PERCENT) { throw new IllegalArgumentException("second argument to fadeout must be a percent but was: " + transparency); } diff --git a/modules/javafx.graphics/src/test/java/test/javafx/css/CssParserTest.java b/modules/javafx.graphics/src/test/java/test/javafx/css/CssParserTest.java index 96e91065f9..d0a37e98ca 100644 --- a/modules/javafx.graphics/src/test/java/test/javafx/css/CssParserTest.java +++ b/modules/javafx.graphics/src/test/java/test/javafx/css/CssParserTest.java @@ -454,7 +454,7 @@ public void testFadeout() { decls = RuleShim.getUnobservedDeclarationList(ss.getRules().get(0)); decl = decls.get(0); value = decl.getParsedValue(); - fail("css \"fadein\" IllegalArgumentException is not thrown for non-percent argument"); + fail("css \"fadeout\" IllegalArgumentException is not thrown for non-percent argument"); } catch (IllegalArgumentException ex) {} }