RFR: 8332895: Support interpolation for backgrounds and borders [v18]

Michael Strauß mstrauss at openjdk.org
Wed Aug 7 18:34:38 UTC 2024


On Wed, 7 Aug 2024 17:42:29 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> I could not find in `cssref.html` any reference to which properties are interpolatable, and which components of interpolatable and which support reconstruction. I think we need to update the spec with this information.
> 
> For example, the following does not interpolate, is it because I am doing something wrong or the border radius is not interpolatable?
> 
> ```
> .button {
>  -fx-border-radius: 100;
> }
> 
> .button:hover {
>  -fx-border-radius: 1;
>   transition: 
>    -fx-border-radius 2s linear;
> }
> ```

You probably don't see anything because Modena's button doesn't have a visible border. Try specifying some color to make it visible:

.button {
    -fx-border-radius: 10,
    -fx-border-color: red;
}

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1522#issuecomment-2274084408


More information about the openjfx-dev mailing list