Open PavelTurk opened 2 years ago
Here's a work-around:
textArea.setId( "myarea" );
#myarea .caret {
-rtfx-blink-rate: 5000ms;
-fx-stroke-width: 10.0;
}
Explanation: CSS is applied from least specific to most specific, with the most specific selector overriding the lesser.
Since the default CSS in "styled-text-area.css" for -rtfx-blink-rate is already highly specified as .styled-text-area .caret
we need to use the Node Id specifier to override it.
This is java code:
This is css:
Caret seems to blink with the same rate, and with one pixel width. Is this correct behavior?