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 205925 - background property false error
Summary: background property false error
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.1
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-05 12:40 UTC by Marek Fukala
Modified: 2012-02-14 08:18 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2011-12-05 12:40:41 UTC
.dropshadow1{
	background: url(images/shadowAlpha.png) no-repeat bottom right 	
}

the rule above reports that the background property is invalid - the "right" token is unexpected.

This is due to the missing support of "&&" (AND) operator in the GrammarResolver. Since the operator is really rare in the grammars, before I reimplemented the grammar resolver, I replaced the operator in the property grammars by whitespace which changed the semantic to SEQUENCE. As it turned out such workaround have some consequences as demonstrated in the sample above.

The consequence also is that the code completion doesn't properly offer the completion items.

I've temporarily resolved the issue in the grammar itself by transcribing the 

(A && B) by ( ( A B) | (B A) ) but still the issue should be resolved properly in the GrammarResolver/GrammarParser classes + all the workarounded properties should be updated to the original form.
Comment 1 Marek Fukala 2011-12-05 12:42:22 UTC
workarounded in web-main#9b11c01ad239
Comment 2 Marek Fukala 2011-12-05 20:50:45 UTC
properly fixed in web-main#be5ca7d102d8
Comment 3 Quality Engineering 2011-12-06 12:12:51 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/9b11c01ad239
User: Marek Fukala <mfukala@netbeans.org>
Log: #205925 - just workaround - background property false error
Comment 4 Marian Mirilovic 2012-02-09 11:52:27 UTC
verified by asenk on 2012-01-26_06-00-29
Comment 5 Marek Fukala 2012-02-10 15:46:22 UTC
changeset:   219362:c782618ab772
branch:      release71_fixes
summary:     manually transplanting 71patch1-candidate issues into the release71_fixes branch. #205901, 205925, 207572, 205997, 205893  by transferring every trunk change up to revision 7cff4ed511e4 from css.lib and css.editor modules.
Comment 6 Vladimir Riha 2012-02-14 08:18:33 UTC
verified in 7.1.1 against the test case in bug description

Product Version: NetBeans IDE 7.1.1 RC1 (Build 201202132200)