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 269874 - Wrong indication for incorrect CSS code
Summary: Wrong indication for incorrect CSS code
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2017-02-20 10:05 UTC by heyjoe
Modified: 2017-02-20 10:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot of the tooltip (117.21 KB, image/png)
2017-02-20 10:06 UTC, heyjoe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description heyjoe 2017-02-20 10:05:19 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Linux version 4.1.38-47-default running on amd64
Java; VM; Vendor = 1.8.0_101
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.101-b13

Reproducibility: Happens every time

STEPS:
  * Open a CSS file containing the following lines:

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: local('Montserrat-Regular'), url('/vendor/fonts/Montserrat-Regular-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}

ACTUAL:
  The line starting with "unicode-range" is shown by the IDE with an error icon with a tooltip containing many errors about unexpected characters or tokens. Screenshot: https://snag.gy/r1VWX5.jpg
  Also the next line (the closing brace) is shown with an error "Unexpected token RBRACE found"

EXPECTED:
  These should not show as errors as this is valid CSS code.
Comment 1 heyjoe 2017-02-20 10:06:36 UTC
Created attachment 163667 [details]
screenshot of the tooltip