On Fri, 13 Sep 2024 20:54:12 GMT, Kevin Rushforth <k...@openjdk.org> wrote:

> So, do we really need `fromInlineStyle`?

Now I understand the question!

A bit of history: I had a single method before that accepted `(String style, 
String ... names)`.  Turns out it was a trap: it's easy to forget about it and 
simply supply a list of style names, which results in the first style name 
being interpreted as an inline style (and cause an error message).  Since I 
fell into this trap myself, I thought it would be better to have two methods 
with descriptive names.

Is there a better solution?

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

PR Comment: https://git.openjdk.org/jfx/pull/1524#issuecomment-2350190960

Reply via email to