JDK-8115143 : Missing gradient fill for text styled with rounded border
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 7u6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2012-11-07
  • Updated: 2015-07-20
  • Resolved: 2013-06-19
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.
JDK 7 JDK 8
7u40Fixed 8Fixed
Related Reports
Relates :  
Relates :  
Description
This is a regression from RT-21740. Create an HTML file of the following content and try to open it in JavaFX WebLauncher or Browser. The text should be filled with green-to-yellow gradient, but it's not. Having the fix for RT-21740 rolled back, the gradient is drawn properly.

<!DOCTYPE html> 
<html> 
   <body> 
       <div style="background-image: -webkit-gradient( linear, left bottom, right top, color-stop(0, green), color-stop(1, yellow)); border-style: solid; border-radius: 5px; ">
           Should be filled with gradient
       </div> 
   </body> 
</html>

Comments
Verified in 2.2.40
24-07-2013

Oh! I found netbeans bug in parallel. Bug is fixed.
24-07-2013

import java.util.Properties; import javafx.application.Application; import javafx.beans.property.Property; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.StackPane; import javafx.scene.web.WebEngine; import javafx.scene.web.WebView; import javafx.stage.Stage; public class JavaFXApplication1 extends Application { @Override public void start(Stage primaryStage) { Properties pp = System.getProperties(); for (Object object : pp.keySet()) { System.out.println(""+ object + " = " + System.getProperty(""+ object)); } Button btn = new Button(); btn.setText("Say 'Hello World'"); btn.setOnAction(new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent event) { System.out.println("Hello World!"); } }); StackPane root = new StackPane(); WebView wv = new WebView(); WebEngine we = wv.getEngine(); we.load("file:///export/local/junk/index.html"); root.getChildren().add(wv); Scene scene = new Scene(root, 300, 250); primaryStage.setTitle("Hello World!"); primaryStage.setScene(scene); primaryStage.show(); } public static void main(String[] args) { launch(args); } } index.html - is from description of this bug
24-07-2013

How did you test the fix?
23-07-2013

This was integrated in 7u40-b30
23-07-2013

Check "recent changes" list of a particular build to make sure that related changeset is in.
23-07-2013

What build it is fixed in? I tested with jdk 1.7.0_40b33 and b34. Bug is not fixed in it.
23-07-2013

The fix for this bug will be in 7u40-b30
19-06-2013

The bug is a regression from the fix to RT-21740.
20-11-2012

Initially, this issue was investigated when working on RT-23491
07-11-2012