"-fx-highlight-text-fill" CSS doesn't work due to JDK bug
See original GitHub issueSorry for yet another issue, but…
I’m on 1.0.0-SNAPSHOT and it seems that setting -fx-highlight-fill
and -fx-highlight-text-fill
aren’t working as expected. I’m following the instructions here: https://github.com/TomasMikula/RichTextFX/wiki/Styling-RichTextFX-and-a-CSS-Cheat-Sheet#cheat-sheet
The bottom part of the attached image is from a StyleClassedTextArea. You can see that the text is being styled correctly (it’s got a class of “header”), but the highlight CSS isn’t.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:17 (7 by maintainers)
Top Results From Across the Web
Developers - "-fx-highlight-text-fill" CSS doesn't work due to JDK bug -
Sorry for yet another issue, but... I'm on 1.0.0-SNAPSHOT and it seems that setting -fx-highlight-fill and -fx-highlight-text-fill aren't working as ...
Read more >CSS resolution errors in modena.bss - Java Bug System
I have a minimal working example (see steps to reproduce). It seems like a combination of removing and adding a node back to...
Read more >JavaFX CSS Reference Guide - Oracle Help Center
This document describes the JavaFX Cascading Style Sheets (CSS) for JavaFX 2 and explains the styles, values, properties and associated grammar.
Read more >JavaFX CSS Error ( Property Stylesheets does not exist )
You were creating an FXML in Scene Builder 2 and running in JDK 7. SB 2 "tries to" create Java 8 compatible FXML...
Read more >JDK-6615248 SCCS tag interpetation makes code invalid
JDK -6615248 : SCCS tag interpetation makes code invalid. Type: Bug; Component: core-svc; Sub-Component: tools; Affected Version: 5.0,5.0u14,5.0u15.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@eckig No, #398 it does not fix
-fx-highlight-text-fill
.I tried to fix
-fx-highlight-text-fill
in commit https://github.com/JFormDesigner/RichTextFX/commit/0683c01aaf7e93657f1b4ae281a5aaf1abfc6f23, but it does not work 100% because of a bug in JavaFX. For details see commit message.For Markdown Writer FX I’m going to workaround the problem with the unreadable selected text with a brighter background selection color:
Fixed highlight fill not working with PR #844