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 149723

Summary: [cc] "@import" item is not allowed after first css rule, but it's invoked in cc and using breaks CSS parsing
Product: web Reporter: Jindrich Sedek <jsedek>
Component: CSS Visual ToolsAssignee: Jan Stola <jstola>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jindrich Sedek 2008-10-10 10:20:08 UTC
use this code:
-------------------
h1{
}
|
h2{
}
------------------
invoke cc at possition of "|" -> "@import" is in the list
complete code to have: @import "other_style.css"

h2 is no more colored, code completion stops working ....

the code is not valid in this form since any @import rules must precede all other rules, but there should be an error 
message marked in the editor, parsing should continue(probably issue 131915) and preferably code completion could be 
context sensitive in this situation