Skip to content

Commit 20e18ba

Browse files
committed
[css2] Issue 71
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402989
1 parent 80e8f9e commit 20e18ba

2 files changed

Lines changed: 19 additions & 5 deletions

File tree

css2/page.src

Lines changed: 16 additions & 2 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: 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 $ -->
44
<HEAD>
55
<TITLE>Paged media</TITLE>
66
</HEAD>
@@ -63,16 +63,30 @@ The page margin area is transparent.
6363
<P>Authors can specify the margins of a page box inside an <span
6464
class="index-def" title="@page">@page</span> rule. An @page rule
6565
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
6768
@page rule are said to be in the <span class="index-def"
6869
title="page-context"><a name="page-context"><dfn>page
6970
context</dfn></a></span>.</p>
7071

72+
<p class=note>Note: CSS level&nbsp;2 has no at-rules that may appear
73+
inside @page, but such at-rules are expected to be defined in
74+
level&nbsp;3.
75+
7176
<P>The <span class="index-def" title="page selector"><dfn>page
7277
selector</dfn></span> specifies for which pages the declarations
7378
apply. In CSS&nbsp;2.1, page selectors may designate the first page,
7479
all left pages, or all right pages</p>
7580

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&nbsp;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.
7690

7791
<h3><a name="page-margins">Page margins</a></h3>
7892

css2/syndata.src

Lines changed: 3 additions & 3 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: syndata.src,v 2.176 2010-05-19 15:09:12 bbos Exp $ -->
3+
<!-- $Id: syndata.src,v 2.177 2010-07-07 15:58:03 bbos Exp $ -->
44
<head>
55
<title>Syntax and basic data types</title>
66
<meta name="editor" lang="tr" content="Tantek &Ccedil;elik">
@@ -690,7 +690,7 @@ p @here {color: red} /* ruleset with unexpected at-keyword "@here" */
690690
<!-- Note that the ") (" in the last line do not count as a balanced
691691
pair. -->
692692

693-
<li><strong>Invalid at-keywords.</strong> User agents must <span
693+
<li><strong>At-rules with unknown at-keywords.</strong> User agents must <span
694694
class="index-inst" title="ignore"><a href="#ignore">ignore</a></span>
695695
an invalid at-keyword together with everything following it, up to the
696696
end of the block that contains the invalid at-keyword, or up to and
@@ -1068,7 +1068,7 @@ would otherwise be used as
10681068
delimiters in CSS, the entire URI value must be treated as a single
10691069
unit by the tokenizer and normal tokenization behavior does not apply
10701070
within a URI value. Therefore comments are not allowed within a URI
1071-
value.
1071+
value.</em>
10721072
</div>
10731073

10741074
<p> In order to create modular style sheets that are not dependent on

0 commit comments

Comments
 (0)