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.

Bug 243058 - Wrong warning for CSS "font" style declaration value "bold"
Summary: Wrong warning for CSS "font" style declaration value "bold"
Status: RESOLVED WORKSFORME
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-19 14:34 UTC by host
Modified: 2015-06-05 12:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot showing the wrong warning (33.01 KB, image/png)
2014-03-19 14:34 UTC, host
Details

Note You need to log in before you can comment on or make changes to this bug.
Description host 2014-03-19 14:34:52 UTC
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.)
Comment 1 Martin Fousek 2014-03-21 07:56:11 UTC
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.
Comment 2 Martin Fousek 2014-03-28 11:17:37 UTC
Passing to the CSS editor.
Comment 3 Milutin Kristofic 2015-06-01 12:11:07 UTC
Font: bold is not valid, therefore you have warning. You should use font-weight: bold;
Comment 4 Vladimir Riha 2015-06-01 12:49:20 UTC
Mito, it is valid, you can shorthand properties [1]

[1] https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties
Comment 5 Milutin Kristofic 2015-06-01 13:41:40 UTC
Sorry, Vlada thank you.
Comment 6 Milutin Kristofic 2015-06-05 12:08:17 UTC
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/