Skip to content

Commit 909c9fa

Browse files
committed
[css2] Errata
http://www.w3.org/Style/css2-updates/REC-CSS2-20110607-errata.html#s.G.1a --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%403290
1 parent 621dc7a commit 909c9fa

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

css2/grammar.src

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: grammar.src,v 2.73 2013-05-02 11:57:56 bbos Exp $ -->
3+
<!-- $Id: grammar.src,v 2.74 2013-07-15 13:29:14 bbos Exp $ -->
44
<HEAD>
55
<TITLE>Grammar of CSS&nbsp;2.1</TITLE>
66
<!--script src="http://www.w3c-test.org/css/harness/annotate.js#CSS21_DEV" type="text/javascript" defer></script-->
@@ -74,9 +74,6 @@ combinator
7474
: '+' S*
7575
| '>' S*
7676
;
77-
unary_operator
78-
: '-' | '+'
79-
;
8077
property
8178
: IDENT S*
8279
;
@@ -114,8 +111,7 @@ expr
114111
: term [ operator? term ]*
115112
;
116113
term
117-
: unary_operator?
118-
[ NUMBER S* | PERCENTAGE S* | LENGTH S* | EMS S* | EXS S* | ANGLE S* |
114+
: [ NUMBER S* | PERCENTAGE S* | LENGTH S* | EMS S* | EXS S* | ANGLE S* |
119115
TIME S* | FREQ S* ]
120116
| STRING S* | IDENT S* | URI S* | hexcolor | function
121117
;
@@ -166,7 +162,7 @@ baduri3 {U}{R}{L}\({w}{badstring}
166162
comment \/\*[^*]*\*+([^/*][^*]*\*+)*\/
167163
ident -?{nmstart}{nmchar}*
168164
name {nmchar}+
169-
num [0-9]+|[0-9]*"."[0-9]+
165+
num [-+]?[0-9]+|[-+]?[0-9]*"."[0-9]+
170166
string {string1}|{string2}
171167
badstring {badstring1}|{badstring2}
172168
badcomment {badcomment1}|{badcomment2}

0 commit comments

Comments
 (0)