Skip to content

Commit 816f7fd

Browse files
committed
[css2] Issues 61, 72, 89, 113, 116, 123, 124
from http://wiki.csswg.org/spec/css2.1 --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402952
1 parent 9bd9f0c commit 816f7fd

6 files changed

Lines changed: 35 additions & 33 deletions

File tree

css2/grammar.src

Lines changed: 13 additions & 18 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: grammar.src,v 2.59 2009-05-15 17:31:38 bbos Exp $ -->
3+
<!-- $Id: grammar.src,v 2.60 2009-08-06 19:22:14 bbos Exp $ -->
44
<HEAD>
55
<TITLE>Grammar of CSS&nbsp;2.1</TITLE>
66
</HEAD>
@@ -41,46 +41,46 @@ used:</P>
4141
<pre>
4242
stylesheet
4343
: [ CHARSET_SYM STRING ';' ]?
44-
[S|CDO|CDC]* [ import [ [CDO|CDC] [S|CDO|CDC] ]* ]*
45-
[ [ ruleset | media | page ] [ [CDO|CDC] [S|CDO|CDC] ]* ]*
44+
[S|CDO|CDC]* [ import [ CDO S* | CDC S* ]* ]*
45+
[ [ ruleset | media | page ] [ CDO S* | CDC S* ]* ]*
4646
;
4747
import
4848
: IMPORT_SYM S*
49-
[STRING|URI] S* [ medium [ COMMA S* medium]* ]? ';' S*
49+
[STRING|URI] S* [ medium [ ',' S* medium]* ]? ';' S*
5050
;
5151
media
52-
: MEDIA_SYM S* medium [ COMMA S* medium ]* LBRACE S* ruleset* '}' S*
52+
: MEDIA_SYM S* medium [ ',' S* medium ]* '{' S* ruleset* '}' S*
5353
;
5454
medium
5555
: IDENT S*
5656
;
5757
page
5858
: PAGE_SYM S* pseudo_page?
59-
LBRACE S* declaration? [ ';' S* declaration? ]* '}' S*
59+
'{' S* declaration? [ ';' S* declaration? ]* '}' S*
6060
;
6161
pseudo_page
6262
: ':' IDENT S*
6363
;
6464
operator
65-
: '/' S* | COMMA S*
65+
: '/' S* | ',' S*
6666
;
6767
combinator
68-
: PLUS S*
69-
| GREATER S*
68+
: S* '+' S*
69+
| S* '>' S*
7070
| S+
7171
;
7272
unary_operator
73-
: '-' | PLUS
73+
: '-' | '+'
7474
;
7575
property
7676
: IDENT S*
7777
;
7878
ruleset
79-
: selector [ COMMA S* selector ]*
80-
LBRACE S* declaration? [ ';' S* declaration? ]* '}' S*
79+
: selector [ ',' S* selector ]*
80+
'{' S* declaration? [ ';' S* declaration? ]* '}' S*
8181
;
8282
<span class="index-inst" title="selector">selector</span>
83-
: simple_selector [ combinator simple_selector ]*
83+
: simple_selector [ combinator simple_selector ]* S*
8484
;
8585
simple_selector
8686
: element_name [ HASH | class | attrib | pseudo ]*
@@ -196,11 +196,6 @@ Z z|\\0{0,4}(5a|7a)(\r\n|[ \t\r\n\f])?|\\z
196196
"~=" {return INCLUDES;}
197197
"|=" {return DASHMATCH;}
198198

199-
{w}"{" {return LBRACE;}
200-
{w}"+" {return PLUS;}
201-
{w}">" {return GREATER;}
202-
{w}"," {return COMMA;}
203-
204199
{string} {return STRING;}
205200
{invalid} {return INVALID; /* unclosed string */}
206201

css2/page.src

Lines changed: 5 additions & 1 deletion
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.61 2009-05-15 17:31:38 bbos Exp $ -->
3+
<!-- $Id: page.src,v 2.62 2009-08-06 19:22:14 bbos Exp $ -->
44
<HEAD>
55
<TITLE>Paged media</TITLE>
66
</HEAD>
@@ -321,6 +321,10 @@ be set to '0' or retained.
321321

322322
<li>Between <a href="visuren.html#line-box">line boxes</a>
323323
inside a <a href="visuren.html#block-box">block</a> box.
324+
325+
<li>Between the content edge of a block box and the outer edges of its
326+
child content (margin edges of block-level children or line box edges
327+
for inline-level children) if there is a (non-zero) gap between them.
324328
</ol>
325329

326330
<p class=note>Note: It is expected that CSS3 will specify that the

css2/syndata.src

Lines changed: 6 additions & 5 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.169 2009-05-15 17:31:39 bbos Exp $ -->
3+
<!-- $Id: syndata.src,v 2.170 2009-08-06 19:22:14 bbos Exp $ -->
44
<head>
55
<title>Syntax and basic data types</title>
66
<meta name="editor" lang="tr" content="Tantek &Ccedil;elik">
@@ -690,10 +690,11 @@ pair. -->
690690

691691
<li><strong>Invalid at-keywords.</strong> User agents must <span
692692
class="index-inst" title="ignore"><a href="#ignore">ignore</a></span>
693-
an invalid at-keyword together with everything following it, up to and
694-
including the next semicolon (;), the next block ({...}), or the end
695-
of the block (}) that contains the invalid at-keyword, whichever
696-
comes first. For example, consider the following:
693+
an invalid at-keyword together with everything following it, up to the
694+
end of the block that contains the invalid at-keyword, or up to and
695+
including the next semicolon (;), or up to and including the next
696+
block ({...}), whichever comes first. For example, consider the
697+
following:
697698

698699
<pre class="illegal-example"><code>
699700
@three-dee {

css2/tables.src

Lines changed: 4 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: tables.src,v 2.113 2009-05-20 14:15:41 bbos Exp $ -->
3+
<!-- $Id: tables.src,v 2.114 2009-08-06 19:22:14 bbos Exp $ -->
44
<head>
55
<title>Tables</title>
66
</head>
@@ -942,8 +942,9 @@ class="propinst-height">'height'</span> value of 'auto' for a
942942
'table-row' means the row height used for layout is MIN. MIN depends
943943
on cell box heights and cell box alignment (much like the calculation
944944
of a <a href="visudet.html#line-height">line box</a> height).
945-
Percentage heights on table cells, table rows, and table row groups
946-
compute to 'auto'.
945+
CSS&nbsp;2.1 does not define how the height of table cells, table rows
946+
and table row groups is calculated when their height is specified
947+
using percentage values.
947948

948949
<p>In CSS&nbsp;2.1, the height of a cell box is the maximum of the
949950
table cell's <span class="propinst-height">'height'</span> property

css2/visudet.src

Lines changed: 4 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: visudet.src,v 2.136 2009-05-15 17:31:39 bbos Exp $ -->
3+
<!-- $Id: visudet.src,v 2.137 2009-08-06 19:22:15 bbos Exp $ -->
44
<head>
55
<title>Visual formatting model details</title>
66
<style type="text/css">
@@ -1307,8 +1307,9 @@ influence these calculations just like elements with content.
13071307
<h3><a name="leading">Leading and half-leading</a></h3>
13081308

13091309
<p>Since the value of <span
1310-
class="propinst-line-height">'line-height'</span> may be different
1311-
from the height of the content area there may be space above and below
1310+
class="propinst-line-height">'line-height'</span> for an inline box
1311+
may be different
1312+
from the height of its content area there may be space above and below
13121313
rendered glyphs. The difference between the content height and the used
13131314
value of <span class="propinst-line-height">'line-height'</span> is
13141315
called the <span class="index-def"

css2/visuren.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: visuren.src,v 2.154 2009-05-19 17:25:35 bbos Exp $ -->
3+
<!-- $Id: visuren.src,v 2.155 2009-08-06 19:22:15 bbos Exp $ -->
44
<head>
55
<title>Visual formatting model</title>
66
<meta name="editor" lang="tr" content="Tantek &Ccedil;elik">
@@ -248,7 +248,7 @@ boxes</dfn></a>.
248248
</code></pre>
249249
</div>
250250

251-
<p>The <code>&lt;p&gt;</code> generates a block box, with several inline boxes inside
251+
<p>the <code>&lt;p&gt;</code> generates a block box, with several inline boxes inside
252252
it. The box for "emphasized" is an inline box generated by an inline
253253
element (<code>&lt;em&gt;</code>), but the other boxes ("Some" and "text") are inline boxes generated by a block-level element (<code>&lt;p&gt;</code>). The latter are called <span
254254
class="index-def" title="anonymous inline boxes">anonymous inline
@@ -714,7 +714,7 @@ However, it may be taller than the tallest box it contains
714714
(if, for example, boxes are aligned so that baselines line up).
715715
When the height of a box B is less than the height of the line box containing it,
716716
the vertical alignment of B within the line box is determined by
717-
the 'vertical-align' property.
717+
the <span class="propinst-vertical-align">'vertical-align'</span> property.
718718
When several inline boxes cannot fit horizontally within a single
719719
line box, they are distributed among two or more vertically-stacked
720720
line boxes. Thus, a paragraph is a vertical stack of line boxes. Line

0 commit comments

Comments
 (0)