question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"-fx-highlight-text-fill" CSS doesn't work due to JDK bug

See original GitHub issue

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 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. no-fill-no-chill

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
JFormDesignercommented, Dec 1, 2016

@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:

.styled-text-area {
    -fx-highlight-fill: derive(#1E90FF, 100%);
}
0reactions
Jugencommented, Aug 21, 2019

Fixed highlight fill not working with PR #844

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found