Unexpected token error NL and LBRACE in netbean

I am using netbean7.3 and in the code below

@keyframes myfirst
{
from {box-shadow: 4px 4px 4px #666666;border: 1px solid #444444;}
to {box-shadow: 4px 4px 4px #DCDCDC;border: 1px solid #d6d6d6;}

}

      

i got error

enter image description here

however it can be solved by using {

after@keyframes myfirst

enter image description here

I just want to know what is the difference between the first (error) and the other since it appeared AFAIK it {

doesn't matter?

+3


source to share


1 answer


Well, your syntaxes are correct (you can check here ) as the W3C defines a keyframe definition as

[...] the keyword "@keyframes", followed by an identifier giving the name of the animation (which will be referenced using "name-animation"), followed by a set of style rules (delimited by curly braces).

Wed http://www.w3.org/TR/css3-animations/#keyframes

So most likely netbeans error



EDIT: grammar of keyframe declaration

KEYFRAMES_SYM S + IDENT S * '{' S * keyframes_blocks '}' S *;

S

is defined as (#x9 | #xA | #xC | #xD | #x20)+

, so it includes "space", "tab", "line", "carriage return" and "feed-form".

Is netbeans NL

in this set?

+1


source







All Articles