To round my tab corners, I use the following code:
.tab { -fx-border-radius: 10 10 0 0; -fx-background-radius: 10 10 0 0; } .tab:selected .focus-indicator { -fx-border-radius: 10 10 0 0, 10 10 0 0; }
However, I get a rather strange behavior. When a new tab is created, it has some additional angles that disappear later when I change focus or create a new tab. For example, I create the first tab. 
Now I am creating a second tab. The first tab is already normal, but the second has these strange corners. 
I checked on centos and win7 - the behavior is the same. How to fix it?
EDIT 1
This is all my css file. The ultimate goal is to increase the title bar of the rounded corners.
.tab:selected .focus-indicator { -fx-border-radius: 10 10 0 0, 10 10 0 0; -fx-border-insets: -7 -7 -9 -8, -5 -5 -9 -6; } .tab-pane > .tab-header-area > .headers-region > .tab:selected{ -fx-border-insets: 10 10 10 10, 10 10 10 10; } .tab-pane > .tab-header-area > .headers-region > .tab > .tab-container > .tab-label { -fx-alignment: CENTER; -fx-text-fill: -fx-text-base-color; -fx-padding:0 10 0 0; } .tab-header-area .tab{ -fx-padding:4 10 5 10; -fx-border-radius: 10 10 0 0; -fx-background-radius: 10 10 0 0; }
EDIT 2
I tested it on two different PCs: 1 (Ubuntu), 2 (Centoc 71 and VM Win7). I tried to compile using oracle jdk - the result will be the same.
user2022068
source share