Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING: CSS Error parsing in-line style '-fx-background-image: ;': Unexpected token ';' at [1,22] #774

Closed
jperedadnr opened this issue Oct 23, 2024 · 2 comments · Fixed by #780
Labels
bug Something isn't working

Comments

@jperedadnr
Copy link
Collaborator

Adding a style class in the Inspector->Style textField, throws a warning before waiting until the value to such style class is set:

Oct 23, 2024 5:43:28 PM javafx.css.CssParser term
WARNING: CSS Error parsing in-line style '-fx-background-image: ;' from com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.StyleEditor$StyleableStub@4fa47aa3: Unexpected token ';' at [1,22]

Expected Behavior

No warning is thrown if the value field is empty

Current Behavior

A warning is thrown when value field is empty

Steps to Reproduce

Open Scene Builder, empty template, add an anchor pane, go to Inspector -> Properties -> Style, when context menu shows up, select -fx-background-color for instance. The context menu gets closed and the warning is printed out, as there is no value set yet.

Your Environment

Screenshots

@jperedadnr jperedadnr added the bug Something isn't working label Oct 23, 2024
@abhinayagarwal
Copy link
Collaborator

Unable to reproduce on master branch using the "Steps to Reproduce" from the description.

@jperedadnr
Copy link
Collaborator Author

See logs or add a ConsoleHandler to logging.properties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants