I have a problem with Tooltips in JavaFX. For illustration the core of this problem I created new JavaFX project through IntelliJ Idea. Root pane of that project is HBox with alignment="CENTER" and that HBox contains four buttons (text: Button A-D). Every button has set Tooltip with text: Sample tooltip A-B. Through fxml file I am also loading cascading styles saved in file named styles.css.
Problem description: I launch application and when I hover with mouse on the first button, it's tooltip looks exactly like CSS file describes. When I am hovering on the second button, right border of tooltip is very slightly brighter. But when I hover with mouse on third or fourth button, right red border of tooltip is slightly visible, rather we can see mix of it's background (yellow) and border color. None of others borders is doing that, only the right border. It's very strange behavioral.
What I tried: I tried change font family, font size and padding.
My question: What causes this issue? Have you got any solution for that problem? And have you got this trouble too?
Screenshot shows issue that I described

*Mouse cursor is hovering on Button C
Main.java
package sample;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws Exception{
Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
primaryStage.setTitle("Hello World");
primaryStage.setScene(new Scene(root, 300, 275));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
Controller.java
package sample;
public class Controller {
}
sample.fxml
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<HBox alignment="CENTER" spacing="10.0" stylesheets="@styles.css" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1">
<children>
<Button mnemonicParsing="false" text="Button A">
<tooltip>
<Tooltip text="Sample tooltip A" />
</tooltip>
</Button>
<Button mnemonicParsing="false" text="Button B">
<tooltip>
<Tooltip text="Sample tooltip B" />
</tooltip>
</Button>
<Button mnemonicParsing="false" text="Button C">
<tooltip>
<Tooltip text="Sample tooltip C" />
</tooltip>
</Button>
<Button mnemonicParsing="false" text="Button D">
<tooltip>
<Tooltip text="Sample tooltip D" />
</tooltip>
</Button>
</children>
</HBox>
styles.css
.tooltip{
-fx-text-fill: black;
-fx-background-radius: 0px;
-fx-background-color: yellow;
-fx-effect: null;
-fx-border-width: 1px;
-fx-border-color: red;}
PS: Sorry for my english. If it's bug of JavaFX, it's very acute to resolve where is problem!
