On Mon, 23 Nov 2020 05:52:59 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

>> I have already mentioned it here.
>
> But in what place we parse "rgb(...)"? it does not seem mentioned in this 
> method and does not depend on the c.getForeground()?

It is parsed in Parser.java#parseAttributeValue() which is being called from 
this method via kit.read().
It also parses rgba() and store it but JDK does not seem to support rgba() in 
CSS.java and also SwingUtilities2.displayPropertiesToCSS() which is being 
called prior to html parsing so alpha needs to be parsed separately.

-------------

PR: https://git.openjdk.java.net/jdk/pull/1158

Reply via email to