RFR: 8345188: Support tree-structural pseudo-classes [v10]

Michael Strauß mstrauss at openjdk.org
Thu Jan 9 19:05:50 UTC 2025


On Thu, 9 Jan 2025 18:59:39 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> `nth-child()` probably makes sense in the web world, but not in javafx, in my opinion.
> 
> Can you give an example of where it can be useful?
> 
> I also recall how it was snuck in into original PR, which started with a `:root`. Maybe we should pick #1 now and consider #4 as a possible future enhancement?

It's useful when you have a list of items that should have an alternating appearance. I've quite often used custom lists of items that are not ListViews, TableViews, etc.

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

PR Comment: https://git.openjdk.org/jfx/pull/1652#issuecomment-2581050838


More information about the openjfx-dev mailing list