On Tue, 24 Nov 2020 13:02:12 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
>> Issue is a JLabel with a translucent foreground color properly renders plain >> text, but with HTML text, the alpha component is discarded and the text is >> rendered using an opaque color. >> As per https://www.w3schools.com/cssref/func_rgba.asp, CSS supports rgba() >> to support alpha and render translucent text color >> but support for rgba() is not present in JDK html text rendering. >> >> Added support for rgba() to render translucent text color. > > Prasanta Sadhukhan has updated the pull request incrementally with one > additional commit since the last revision: > > Revert unneeded additional code test/jdk/javax/swing/JLabel/TestTranslucentLabelText.java line 27: > 25: * @bug 8256019 > 26: * @summary Verifies if JLabel HTML text support translucent text colors > 27: * @run main/manual TestTranslucentLabelText Is it necessary to make this test manual? probably we can just draw the label to the buffered image and check resulted content? ------------- PR: https://git.openjdk.java.net/jdk/pull/1158