JEP 253 webrev ready for review

Jonathan Giles jonathan.giles at
Fri Sep 4 05:20:21 UTC 2015

This is not in the spec for this jep. It is additional API that we can discuss and target for a release however. I highly recommend filling an issue in jbs for this, if one doesn't anyway exist. Thanks!

-- Jonathan
Sent from a touch device. Please excuse my brevity.

On 4 September 2015 17:17:14 GMT+12:00, Michael Ennen <mike.ennen at> wrote:
>I am trying to mentally digest the CSS API, but I am having trouble
>answering the question of whether or not the following scenario is now
>possible (using only public APIs). Imagine one wanted to create a new
>that was analogous to, and that it worked
>the way down" in terms of being parsed from CSS into a
>StyleableProperty<Color>. For concreteness, say one wanted to implement
>fadein function:
>fadein( <color> , <number>% )
>The fadein function takes a color and computes a more opaque version of
>that color.
>The second parameter is the opacity, ranging from 0% to 100%. Has no
>fully opaque colors.
>Does the API allow for a way to hook this new function up into the CSS
>parser? If one implemented FadeInColorConverter extends
>StyleConverter<ParsedValue[], Color> that worked according to the above
>specs, how would one hook this fadein function into the parser, so that
>can write CSS such as:
>my-awesome-color: fadein(my-semi-transparent-color, 30%);
>and have a StyleableObjectProperty<Color> come out the other side?
>If this is possible using the new APIs, then this makes those APIs very
>powerful in terms of the possibilities of extending the built-in CSS
>capabilities in very powerful and interesting ways. If it is not
>would it be feasible to make it so in the scope of this JEP?
>Thanks very much,
>Michael Ennen

More information about the openjfx-dev mailing list