CSS inheritance problem

David Grieve david.grieve at oracle.com
Mon Dec 17 13:24:10 PST 2012


No, the children should not inherit this. Please log a bug with some code to reproduce the problem.

On Dec 17, 2012, at 3:02 PM, Pedro Duque Vieira <pedro.duquevieira at gmail.com> wrote:

> Hi,
> 
> I've got a popup which is composed of an anchor pane and it's children.
> I wanted to add a border to the popup so I styled the anchor pane like so:
> -fx-border-style: solid;
> -fx-border-width: 1;
> -fx-border-color: gray;
> 
> The problem is that all the children of the anchor pane will inherit this
> style. I've managed to find a workaround for this which was to add 2
> background, the first one does the job of being a border.
> 
> My question is: is this a suitable behavior? children inheriting the
> parents border style?
> 
> Cheers,
> 
> -- 
> Pedro Duque Vieira



More information about the openjfx-dev mailing list