Skip to content

Commit d4eb483

Browse files
committed
[css2] Some issues from the issues list
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402277
1 parent 7397525 commit d4eb483

7 files changed

Lines changed: 53 additions & 31 deletions

File tree

css2/grammar.src

Lines changed: 2 additions & 2 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.40 2004-12-14 20:12:29 bbos Exp $ -->
3+
<!-- $Id: grammar.src,v 2.41 2005-03-02 04:41:45 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Grammar of CSS&nbsp;2.1</TITLE>
@@ -152,7 +152,7 @@ nonascii [\200-\377]
152152
unicode \\{h}{1,6}(\r\n|[ \t\r\n\f])?
153153
escape {unicode}|\\[ -~\200-\377]
154154
nmstart [_a-z]|{nonascii}|{escape}
155-
nmchar [_a-zA-Z0-9-]|{nonascii}|{escape}
155+
nmchar [_a-z0-9-]|{nonascii}|{escape}
156156
string1 \"([\t !#$%&amp;(-~]|\\{nl}|\'|{nonascii}|{escape})*\"
157157
string2 \'([\t !#$%&amp;(-~]|\\{nl}|\"|{nonascii}|{escape})*\'
158158

css2/properties/properties.db

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ table-cell | table-caption | none | inherit;;
297297
no;;
298298
see prose;;
299299
visual;;
300-
the percentage or 'auto' as specified or the absolute length; 'auto' if the property does not apply
300+
the percentage or 'auto' (see prose under <percentage>) or the absolute length; 'auto' if the property does not apply
301301
*/
302302

303303
/* min-width;;

css2/selector.src

Lines changed: 9 additions & 1 deletion
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: selector.src,v 2.91 2004-12-14 20:12:29 bbos Exp $ -->
3+
<!-- $Id: selector.src,v 2.92 2005-03-02 04:41:45 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Selectors</title>
@@ -573,6 +573,14 @@ situation can be reached, however, so this behavior is explicitly
573573
non-normative in this specification.</em>
574574
</div>
575575

576+
<div class="note"><p><em><strong>Note:</strong> If an element has
577+
multiple class attributes, their values must be concatenated with
578+
spaces between the values before searching for the class. As of this
579+
time the working group is not aware of any manner in which this
580+
situation can be reached, however, so this behavior is explicitly
581+
non-normative in this specification.</em>
582+
</div>
583+
576584
<h2><a name="id-selectors">ID selectors</a></h2>
577585

578586
<P>Document languages may contain attributes that are declared to be

css2/syndata.src

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
22
"http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
33
<html lang="en">
4-
<!-- $Id: syndata.src,v 2.107 2005-03-02 03:18:35 bbos Exp $ -->
4+
<!-- $Id: syndata.src,v 2.108 2005-03-02 04:41:45 bbos Exp $ -->
55
<head>
66
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
77
<title>Syntax and basic data types</title>
@@ -232,7 +232,7 @@ href="#parsing-errors">rules for handling parsing errors</a>. However, because t
232232
href="selector.html">selectors</a>) can contain only the
233233
characters [A-Za-z0-9] and ISO 10646 characters <!--161--> U+00A1 and higher,
234234
plus the hyphen (-) and the underscore (_); they cannot start with
235-
a digit or a hyphen followed by a digit.
235+
a digit, or a hyphen followed by a digit.
236236
Only properties, values, units, pseudo-classes,
237237
pseudo-elements, and at-rules may <em>start</em> with a hyphen (-); other
238238
identifiers (e.g. element names, classes, or IDs) may not.
@@ -324,8 +324,8 @@ the whole of the at-rule and continue parsing after it.
324324
<p>CSS&nbsp;2.1 user agents must <span class="index-inst" title="ignore"><a
325325
href="#ignore">ignore</a></span> any <a
326326
href="cascade.html#at-import">'@import'</a> rule that occurs inside a <a
327-
href="#block">block</a> or after any valid rule other than an @charset or
328-
an @import rule.
327+
href="#block">block</a> or after any valid rule other than an <span
328+
class="index-inst">@charset</span> or an @import rule.
329329
</p>
330330

331331
<div class="illegal-example"><p>
@@ -1211,20 +1211,21 @@ encoding</span> (from highest priority to lowest):
12111211
<ol>
12121212
<li>An HTTP "charset" parameter in a "Content-Type" field
12131213
(or similar parameters in other protocols)</li>
1214-
<li>BOM and/or @charset (see below)</li>
1214+
<li><span class="index-inst">BOM</span> and/or <span
1215+
class="index-inst">@charset</span> (see below)</li>
12151216
<li><code>&lt;link charset=""&gt;</code> or other metadata from the linking mechanism (if any)</li>
12161217
<li>charset of referring stylesheet or document (if any)</li>
12171218
<li>Assume UTF-8</li>
12181219
</ol>
12191220

1220-
<p>Authors using an @charset rule must place the rule at the very
1221-
beginning of the style sheet, preceded by no characters. (If a byte
1222-
order mark is appropriate for the encoding used, it may precede the
1223-
@charset rule.)
1221+
<p>Authors using an <span class="index-inst">@charset</span> rule must
1222+
place the rule at the very beginning of the style sheet, preceded by
1223+
no characters. (If a byte order mark is appropriate for the encoding
1224+
used, it may precede the @charset rule.)
12241225
</p>
12251226

1226-
<p>After "@charset", authors specify the name of a character encoding
1227-
(in quotes). For example:
1227+
<p>After <span class="index-def">"@charset"</span>, authors specify
1228+
the name of a character encoding (in quotes). For example:
12281229
</p>
12291230

12301231
<pre class="example">@charset "ISO-8859-1";</pre>
@@ -1240,10 +1241,11 @@ the charset names marked as "preferred MIME name" in the IANA
12401241
registry.
12411242
</p>
12421243

1243-
<p>User agents must support at least the UTF-8 encoding.
1244+
<p>User agents must support at least the <span
1245+
class="index-inst">UTF-8</span> encoding.
12441246

12451247
<p>User agents must ignore any @charset rule not at the beginning of the
1246-
style sheet. When user agents detect the character encoding using the
1248+
style sheet. When user agents detect the character encoding using the
12471249
BOM and/or the @charset rule, they should follow the following rules:
12481250
</p>
12491251

css2/tables.src

Lines changed: 8 additions & 6 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: tables.src,v 2.79 2005-03-02 03:18:35 bbos Exp $ -->
3+
<!-- $Id: tables.src,v 2.80 2005-03-02 04:41:45 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
66
<title>Tables</title>
@@ -1091,12 +1091,14 @@ class="propinst-empty-cells">'empty-cells'</span> property</h4>
10911091
rendering of borders and backgrounds around cells that have no visible
10921092
content. Empty cells and cells with the <span
10931093
class="propinst-visibility">'visibility'</span> property set to
1094-
'hidden' are considered to have no visible content. Visible content
1095-
includes "&amp;nbsp;" and other whitespace except ASCII CR ("\0D"), LF
1096-
("\0A"), tab ("\09"), and space ("\20"). Cells are empty if they
1097-
contain no in-flow nor floating content other than whitespace that has
1098-
been collapsed away by the <span
1094+
'hidden' are considered to have no visible content.
1095+
Cells are empty unless they contain one or more of the following:
1096+
<ul>
1097+
<li>floating content (including empty elements),
1098+
<li>in-flow content (including empty elements) other than whitespace
1099+
that has been collapsed away by the <span
10991100
class="propinst-white-space">'white-space'</span> property handling.
1101+
</ul>
11001102

11011103
<p>When this property has the value 'show', borders and backgrounds
11021104
are drawn around/behind empty cells (like normal cells).

css2/visudet.src

Lines changed: 15 additions & 6 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: visudet.src,v 2.99 2005-02-08 10:40:38 bbos Exp $ -->
3+
<!-- $Id: visudet.src,v 2.100 2005-03-02 04:41:45 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Visual formatting model details</title>
@@ -407,7 +407,8 @@ position.
407407
</p>
408408
<p>For the purposes of calculating the static position, the containing
409409
block of fixed positioned elements is the initial containing block
410-
instead of the viewport.
410+
instead of the viewport, and all scrollable boxes should be assumed to
411+
be scrolled to their origin.
411412

412413
<p>The constraint that determines the used values for these
413414
elements is:</p>
@@ -427,8 +428,11 @@ href="#static-position">static position</a> and apply rule number
427428
one below.</p>
428429

429430
<p>If none of the three is 'auto': If both 'margin-left' and
430-
'margin-right' are 'auto', solve the equation under the extra
431-
constraint that the two margins get equal values. If one of
431+
'margin-right' are 'auto', solve the
432+
equation under the extra constraint that the two margins get equal
433+
values, unless this would make them negative, in which case when
434+
direction is 'ltr' ('rtl'), set 'margin-left' ('margin-right') to zero
435+
and solve for 'margin-right' ('margin-left'). If one of
432436
'margin-left' or 'margin-right' is 'auto', solve the equation for that
433437
value. If the values are over-constrained, ignore the value for 'left'
434438
(in case 'direction' is 'rtl') or 'right' (in case 'direction' is
@@ -501,7 +505,12 @@ class="propinst-margin-right">'margin-right'</span> with '0'.
501505
class="propinst-margin-left">'margin-left'</span> and <span
502506
class="propinst-margin-right">'margin-right'</span> are still 'auto',
503507
solve the equation under the extra constraint that the two margins
504-
must get equal values.
508+
must get equal values, unless this would make them negative, in which
509+
case when direction is 'ltr' ('rtl'), set <span
510+
class="propinst-margin-left">'margin-left'</span> (<span
511+
class="propinst-margin-right">'margin-right'</span>) to zero and solve
512+
for <span class="propinst-margin-right">'margin-right'</span> (<span
513+
class="propinst-margin-left">'margin-left'</span>).
505514
</li>
506515
<li>If at this point there is an 'auto' left, solve the equation
507516
for that value.
@@ -721,7 +730,7 @@ respect to the height of the generated box's <a
721730
href="visuren.html#containing-block">containing block</a>. If the
722731
height of the containing block is not specified explicitly (i.e., it
723732
depends on content height), and this element is not absolutely
724-
positioned, the value is interpreted like 'auto'. A percentage height
733+
positioned, the value computes to 'auto'. A percentage height
725734
on the <a href="conform.html#root">root element</a> is relative to the
726735
<a href="visuren.html#viewport">viewport</a>.
727736
</dd>

css2/zindex.src

Lines changed: 3 additions & 2 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: zindex.src,v 2.5 2004-02-09 21:47:47 bbos Exp $ -->
3+
<!-- $Id: zindex.src,v 2.6 2005-03-02 04:41:45 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Elaborate description of Stacking Contexts</TITLE>
@@ -156,7 +156,8 @@ the 'z-index' property) is:</p>
156156
tree order.
157157

158158
<li>Finally, implementations that do not draw outlines in steps above
159-
must draw outlines from this stacking context at this stage.
159+
must draw outlines from this stacking context at this stage. (It
160+
is recommended to draw outlines in this step and not in the steps above.)
160161
</ol>
161162

162163
<h2>Notes</h2>

0 commit comments

Comments
 (0)