Skip to content

Commit 20ab6d5

Browse files
committed
[css2] Fixed FUNCTION option in :any: entry to be FUNCTION any\* \')\'; removed comments about range limitations from color value syntax
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401776
1 parent bb0a068 commit 20ab6d5

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

css2/syndata.src

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: syndata.src,v 2.63 1998-05-12 15:40:16 clilley Exp $ -->
3+
<!-- $Id: syndata.src,v 2.64 1999-11-02 19:09:15 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>CSS2 syntax and basic data types</TITLE>
@@ -104,7 +104,7 @@ property : IDENT S*;
104104
value : [ any | block | ATKEYWORD S* ]+;
105105
any : [ IDENT | NUMBER | PERCENTAGE | DIMENSION | STRING
106106
| DELIM | URI | HASH | UNICODE-RANGE | INCLUDES
107-
| FUNCTION | DASHMATCH | '(' any* ')' | '[' any* ']' ] S*;
107+
| FUNCTION any* ')' | DASHMATCH | '(' any* ')' | '[' any* ']' ] S*;
108108
</PRE>
109109

110110
<P><a name="comment">COMMENT</a> tokens do not occur
@@ -915,8 +915,8 @@ specifications. These examples all specify the same color:
915915
<PRE>
916916
EM { color: #f00 } /* #rgb */
917917
EM { color: #ff0000 } /* #rrggbb */
918-
EM { color: rgb(255,0,0) } /* integer range 0 - 255 */
919-
EM { color: rgb(100%, 0%, 0%) } /* float range 0.0% - 100.0% */
918+
EM { color: rgb(255,0,0) }
919+
EM { color: rgb(100%, 0%, 0%) }
920920
</PRE>
921921
</div>
922922

@@ -964,13 +964,12 @@ EM { color: rgb(300,0,0) } /* clipped to rgb(255,0,0) */
964964
EM { color: rgb(255,-10,0) } /* clipped to rgb(255,0,0) */
965965
EM { color: rgb(110%, 0%, 0%) } /* clipped to rgb(100%,0%,0%) */
966966
</PRE>
967+
</div>
967968

968969
<p>Other devices, such as printers, have different gamuts to sRGB;
969970
some colors outside the 0..255 sRGB range will be representable
970971
(inside the device gamut), while other colors inside the 0..255 sRGB
971972
range will be outside the device gamut and will thus be clipped.
972-
</div>
973-
974973

975974
<div class="note"><P>
976975
<em><strong>Note.</strong>

0 commit comments

Comments
 (0)