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.
When adding generated unit tests for parsing css rules I found two following problems: div { background:#fff url(../images/google) no-repeat center left; } 1) ==== reports "left" as unexpected token although the notation is correct. Caused by a bug in the GrammarResolver not being able to properly resolve grammar like: "[ center | a ] && [ center | b ]" and input "center a" the same happens also for the LIST (||) group type: "[ center | a ] || [ center | b ]" and input "center a" 2) ==== url(../images/google)") is not properly resolved as uri due to the unquoted non-literal characters. (bug in the uri grammar) added unit tests for both problems: GrammarResolverTest.testBackground2 GrammarResolverTest.testBgPosition GrammarResolverTest.testBgPositionDetail GrammarResolverTest.testURI
*** Bug 206110 has been marked as a duplicate of this bug. ***
*** Bug 206837 has been marked as a duplicate of this bug. ***
More samples from the issue 206837: div{ background-position: center center, 20% 80%, top left, bottom right; } div{ border-image: url(../img/examp/li/borderimage1.png) 9 round; }
>url(../images/google)") is not properly resolved as uri due to the unquoted >non-literal characters. (bug in the uri grammar) This has already been fixed in the **** branch. But not easily transplantable (depends on complicated changes).
problem #1 fixed in web-main#c0e731b4b6d0
Integrated into 'main-golden', will be available in build *201205180400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c0e731b4b6d0 User: Marek Fukala <mfukala@netbeans.org> Log: #206035 - Incorrect background property value validation/completion
Sorry, I'm afraid I have to reopen it. The problem #1 is really fixed but not the examples from issue #206837 div{ background-position: center center, 20% 80%, top left, bottom right; } div{ border-image: url(img/examp/li/borderimage1.png) 9 round; } It still shows errors: - "Unexpected value token ," - "Unexpected value token round"
(In reply to comment #7) > Sorry, I'm afraid I have to reopen it. The problem #1 is really fixed but not Product Version: NetBeans IDE Dev (Build 201206040001) Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21 System: Windows 7 version 6.1 running on x86; cp1250; en_US (nb)
background-position: center center, 20% 80%, top left, bottom right works fine in latest dev build, border-image: url(img/examp/li/borderimage1.png) 9 round fixed in web-main#6101184864c4
Integrated into 'main-golden', will be available in build *201210100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6101184864c4 User: Marek Fukala <mfukala@netbeans.org> Log: #206035 - fixing border-image grammar
thanks, all samples work fine Product Version: NetBeans IDE Dev (Build 201210100002) Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b03 System: Linux version 3.2.0-31-generic-pae running on i386; UTF-8; en_US (nb)