|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: page.src,v 2.63 2009-08-07 08:37:25 bbos Exp $ --> |
| 3 | +<!-- $Id: page.src,v 2.64 2010-07-07 15:57:37 bbos Exp $ --> |
4 | 4 | <HEAD> |
5 | 5 | <TITLE>Paged media</TITLE> |
6 | 6 | </HEAD> |
@@ -63,16 +63,30 @@ The page margin area is transparent. |
63 | 63 | <P>Authors can specify the margins of a page box inside an <span |
64 | 64 | class="index-def" title="@page">@page</span> rule. An @page rule |
65 | 65 | consists of the keyword "@page", followed by an optional page |
66 | | -selector, followed by a block of declarations. The declarations in an |
| 66 | +selector, followed by a block containing declarations and |
| 67 | +at-rules. The declarations in an |
67 | 68 | @page rule are said to be in the <span class="index-def" |
68 | 69 | title="page-context"><a name="page-context"><dfn>page |
69 | 70 | context</dfn></a></span>.</p> |
70 | 71 |
|
| 72 | +<p class=note>Note: CSS level 2 has no at-rules that may appear |
| 73 | +inside @page, but such at-rules are expected to be defined in |
| 74 | +level 3. |
| 75 | + |
71 | 76 | <P>The <span class="index-def" title="page selector"><dfn>page |
72 | 77 | selector</dfn></span> specifies for which pages the declarations |
73 | 78 | apply. In CSS 2.1, page selectors may designate the first page, |
74 | 79 | all left pages, or all right pages</p> |
75 | 80 |
|
| 81 | +<P>The rules for handling malformed declarations, malformed |
| 82 | +statements, and invalid at-rules inside @page are as defined in <a |
| 83 | +href="syndata.html#parsing-errors">section 4.2,</a> with the |
| 84 | +following addition: when the UA expects the start of a declaration or |
| 85 | +at-rule (i.e., an IDENT token or an ATKEYWORD token) but finds an |
| 86 | +unexpected token instead, that token is considered to be the first |
| 87 | +token of a malformed declaration. I.e., the rule for malformed |
| 88 | +declarations, rather than malformed statements is used to determine |
| 89 | +which tokens to ignore in that case. |
76 | 90 |
|
77 | 91 | <h3><a name="page-margins">Page margins</a></h3> |
78 | 92 |
|
|
0 commit comments