-
Bug
-
Resolution: Fixed
-
P3
-
jfx18.0.1, jfx19
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8302277 | jfx17.0.7 | Kevin Rushforth | P3 | Resolved | Fixed | |
JDK-8300681 | 8u371 | Kevin Rushforth | P3 | Resolved | Fixed | b04 |
JDK-8302273 | jfx11.0.19 | Kevin Rushforth | P3 | Resolved | Fixed | b01 |
This HTML code should produce a grey rectangle and is now black:
<html>
<body style="background-color: #FFFFFF; margin: 0px;">
<div style="color: #FFFFFF; background-color: #000000; opacity: 0.5; width:100px; height:100px;"> </div>
</body>
</html>
Last worked in 18.
Failing since 18.0.1 / 19
Might be related to the SVG problem from JDK-8294011
@Test public void testOpacityRendering() {
loadContent("<html>\n" +
"<body style=\"background-color: #FFFFFF; margin: 0px;\">\n" +
"<div style=\"color: #FFFFFF; background-color: #000000; opacity: 0.5; width:100px; height:100px;\"> </div>\n" +
"</body>\n" +
"</html>");
submit(() -> {
final WebPage webPage = WebEngineShim.getPage(getEngine());
assertNotNull(webPage);
final BufferedImage img = WebPageShim.paint(webPage, 0, 0, 800, 600);
assertNotNull(img);
final Color pixelAt50x50 = new Color(img.getRGB(50, 50), true);
assertTrue("Color should be gray:" + pixelAt50x50, isColorsSimilar(Color.GRAY, pixelAt50x50, 1));
});
}
<html>
<body style="background-color: #FFFFFF; margin: 0px;">
<div style="color: #FFFFFF; background-color: #000000; opacity: 0.5; width:100px; height:100px;"> </div>
</body>
</html>
Last worked in 18.
Failing since 18.0.1 / 19
Might be related to the SVG problem from JDK-8294011
@Test public void testOpacityRendering() {
loadContent("<html>\n" +
"<body style=\"background-color: #FFFFFF; margin: 0px;\">\n" +
"<div style=\"color: #FFFFFF; background-color: #000000; opacity: 0.5; width:100px; height:100px;\"> </div>\n" +
"</body>\n" +
"</html>");
submit(() -> {
final WebPage webPage = WebEngineShim.getPage(getEngine());
assertNotNull(webPage);
final BufferedImage img = WebPageShim.paint(webPage, 0, 0, 800, 600);
assertNotNull(img);
final Color pixelAt50x50 = new Color(img.getRGB(50, 50), true);
assertTrue("Color should be gray:" + pixelAt50x50, isColorsSimilar(Color.GRAY, pixelAt50x50, 1));
});
}
- backported by
-
JDK-8300681 Opacity in WebView not working anymore
- Resolved
-
JDK-8302273 Opacity in WebView not working anymore
- Resolved
-
JDK-8302277 Opacity in WebView not working anymore
- Resolved
- links to
-
Commit openjdk/jfx11u/fc8904a3
-
Commit openjdk/jfx17u/e0b7eda1
-
Commit openjdk/jfx/8136b11f
-
Review openjdk/jfx11u/131
-
Review openjdk/jfx17u/111
-
Review openjdk/jfx/992
(4 links to)