Hi,
I wish to style a text area to have rounded corners. I almost did, but I think I missed something important. The corners are rounded but when I scroll the text inside the scroll pane, some square corner appear.
Here is the code I tried ( I posted only the relevant parts )
ScrollPane pane = new ScrollPane();
pane.setFitToWidth(true);
pane.setFitToHeight(true);
pane.setContent(new TextArea(StringUtils.repeat("a", 200)));
vBox.getChildren().add(pane);
.text-area, .text-area .scroll-pane, .text-area .scroll-pane .viewport, .text-area .scroll-pane .content, .scroll-pane .viewport, .scroll-pane .content, .scroll-pane, .scroll-pane .text-area {
-fx-background-color: green;
-fx-background-radius: 25
}

What did I miss guys?
Kind regards,