Skip to content

Commit 5b9426d

Browse files
committed
[css2] Added media and media import
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40278
1 parent 48a1ebe commit 5b9426d

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

css2/grammar.src

Lines changed: 9 additions & 3 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: grammar.src,v 1.11 1997-10-28 21:21:04 bbos Exp $ -->
3+
<!-- $Id: grammar.src,v 1.12 1997-10-28 23:33:31 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Appendix D: The grammar of CSS2</TITLE>
@@ -36,10 +36,16 @@ human consumption and some shorthand notation beyond
3636

3737
<PRE>
3838
stylesheet
39-
: [CDO|CDC]* [ import [CDO|CDC]* ]* [ ruleset [CDO|CDC]* ]*
39+
: [CDO|CDC]* [ import [CDO|CDC]* ]* [ [ ruleset | media ] [CDO|CDC]* ]*
4040
;
4141
import
42-
: IMPORT_SYM [STRING|URL] ';' /* E.g., @import url(fun.css); */
42+
: IMPORT_SYM [STRING|URL] medium*';' /* E.g., @import url(fun.css); */
43+
;
44+
media
45+
: MEDIA_SYM medium+ '{' ruleset* '}'
46+
;
47+
medium /* e.g., SPEECH */
48+
: IDENT
4349
;
4450
unary_operator
4551
: '-' | '+'

0 commit comments

Comments
 (0)