This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 146148 [details] Screenshot showing the wrong warning I have the following in a JSF page... <h:outputLabel value="#{messages.export}" style="font: bold"/> ...and I get the warning Unexpected character(s) "bold" found for the "font" style declaration. (I know that I should better write "font-style" but I think the above is still valid, isn't it? ...and even if it is not valid then the warning message should be improved.)
I'm not able to open xhtml editor now because of #243099. Marking as candidate for fixing in the Next, but re-evaluation will be necessary here.
Passing to the CSS editor.
Font: bold is not valid, therefore you have warning. You should use font-weight: bold;
Mito, it is valid, you can shorthand properties [1] [1] https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties
Sorry, Vlada thank you.
You need to supply at least font-size and font-family for the shorthand to work, otherwise it'll just be a syntax error and do nothing. https://css-tricks.com/snippets/css/font-shorthand/