On Tue, 23 Jun 2026 17:37:27 GMT, Michael Strauß <[email protected]> wrote:

>> Yes, both are unused now.
>> 
>> I wonder how many tests will may fail if the application Stylesheet changed. 
>> Probably not that much, but I think it is worth exploring.
>
> I really don't like this ad-hoc way of testing some random aspect of a style 
> theme. Maybe we should have a way to test themes more systematically, for 
> example by comparing a scene graph with a style theme against a known 
> reference image. We could probably use the headless platform to render a 
> scene graph in a platform-independent way. Of course, this would also require 
> us to have some tooling to produce the reference images.

The test fails when setting 
`Application.setUserAgentStylesheet(Application.STYLESHEET_CASPIAN);` to use 
caspian stylesheet as in `caspian.css` we have same issue as modena it sets the 
value of `-fx-prompt-text-fill` to transparent


.text-field:focused {
...
    -fx-prompt-text-fill: transparent;
}
.text-area:focused {
...
    -fx-prompt-text-fill: transparent;
}

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

PR Review Comment: https://git.openjdk.org/jfx/pull/2184#discussion_r3469535571

Reply via email to