JDK-8091576 : Add support for background-clip from CSS 3 backgrounds and borders spec
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx2.1
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2012-03-09
  • Updated: 2019-11-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Blocks :  
Relates :  
Relates :  
Description
When you have multiple backgrounds on a region, using insets. Then add a border. You expect the backgrounds to be inside that border not the border drawn over the top of those backgrounds which is what happens today. So what we need to do is add the combined border width on the inside of the bounds to all back ground insets. 

Eg if there is a 10px internal stroked border and a background with inset 1px. The backgrounds inset should be 11px;

Eg if there is a 6px centered stroked border and a background with inset 1px. The backgrounds inset should be 4px  = ((6/2)+1);
Comments
Consider implementation of below properties as well, -fx-border-top-color -fx-border-right-color -fx-border-left-color -fx-border-bottom-color Values for -fx-border-style: double groove ridge inset outset -fx-border-style-top -fx-border-style-right -fx-border-style-bottom -fx-border-style-left -fx-border-width-right -fx-border-width-left -fx-border-width-bottom -fx-border-width-right
14-11-2019

background-origin needs to be implemented at the same time as background-clip
12-12-2012

It appears that by default (according to the CSS 3 spec) the background-clip is border-box, meaning it goes beneath the border. However the background-clip could be set to padding-box or content-box, and the background will then only paint within those alternate bounds. So I believe this issue should be a tweak instead of a bug.
25-08-2012

I am not sure that this request is correct with respect to the CSS 3 borders and backgrounds spec.I believe the border should in fact draw over top of the background.
25-08-2012

Defer to 3.0
25-05-2012

Please add a comment to this bug indicating what specific information should be included in the JavaFX 2.1 Release Notes.
16-03-2012

SQE / OK
16-03-2012

Too late and too risky for 2.1, especially considering that this is not a regression.
16-03-2012

We will evaluate, but likely need to defer at this point.
12-03-2012

RT-20208 is caused by this issue
09-03-2012