On Wed, 4 Mar 2026 14:50:59 GMT, Michael Strauß <[email protected]> wrote:
> > I'm wondering one more thing, why don't we skip color parsing completely as
> > we can easily tell if something is a variable? I believe CSS requires that
> > they start with `--<letter>`.
>
> In JavaFX the dashes are not required. The `var()` function is also neither
> required nor supported.
I wondered the same. Maybe we could document a recommendation and do a simple
`startsWith("--")` check, so we can save some parsing cycles.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/2093#issuecomment-4014248986