Skip to content

Commit 86bd24d

Browse files
committed
[css2] Removed @font-face and added @page.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402005
1 parent 8e82510 commit 86bd24d

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

css2/grammar.src

Lines changed: 8 additions & 5 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 2.26 2002-08-19 14:57:52 bbos Exp $ -->
3+
<!-- $Id: grammar.src,v 2.27 2003-01-10 23:08:58 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Appendix: grammar of CSS&nbsp;2.1</TITLE>
@@ -46,7 +46,7 @@ used:</P>
4646
stylesheet
4747
: [ CHARSET_SYM S* STRING S* ';' ]?
4848
[S|CDO|CDC]* [ import [S|CDO|CDC]* ]*
49-
[ [ ruleset | media | font_face ] [S|CDO|CDC]* ]*
49+
[ [ ruleset | media | page ] [S|CDO|CDC]* ]*
5050
;
5151
import
5252
: IMPORT_SYM S*
@@ -58,10 +58,13 @@ media
5858
medium
5959
: IDENT S*
6060
;
61-
font_face
62-
: FONT_FACE_SYM S*
61+
page
62+
: PAGE_SYM S* pseudo_page? S*
6363
'{' S* declaration [ ';' S* declaration ]* '}' S*
6464
;
65+
pseudo_page
66+
: ':' IDENT
67+
;
6568
operator
6669
: '/' S* | ',' S* | /* empty */
6770
;
@@ -179,8 +182,8 @@ range \?{1,6}|{h}(\?{0,5}|{h}(\?{0,4}|{h}(\?{0,3}|{h}(\?{0,2}|{h}(\??|{h})))))
179182
"#"{name} {return HASH;}
180183

181184
"@import" {return IMPORT_SYM;}
185+
"@page" {return PAGE_SYM;}
182186
"@media" {return MEDIA_SYM;}
183-
"@font-face" {return FONT_FACE_SYM;}
184187
"@charset" {return CHARSET_SYM;}
185188

186189
"!{w}important" {return IMPORTANT_SYM;}

0 commit comments

Comments
 (0)