JDK-8234877 : Changing CSS style of Button sometimes fails to take effect
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 10,openjfx11,openjfx13
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2019-11-27
  • Updated: 2020-02-05
  • Resolved: 2020-02-05
Related Reports
Duplicate :  
Relates :  
Description
To reproduce this:

1. Run the HelloCSS program from apps/toys/Hello

$ java hello.HelloCSS

2. Click the button with the red background labeled "Move"

3. BUG: the button stays red after it is moved, when it should change to yellow

This is a regression introduced in JDK 10 as a result of the fix for JDK-8090462. If I locally backout the fix for JDK-8090462 then it works.
Comments
I can confirm that this is a duplicate of JDK-8237469. Applying the patch from the PR for that bug fixes this one. Closing as a duplicate.
05-02-2020