8000 [css2] Updated some issues. · w3c/csswg-drafts@35f89b2 · GitHub
Skip to content

Commit 35f89b2

Browse files
committed
[css2] Updated some issues.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402200
1 parent 1c5f40b commit 35f89b2

4 files changed

Lines changed: 24 additions & 68 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.35 2003-10-17 17:52:46 bbos Exp $ -->
3+
<!-- $Id: grammar.src,v 2.36 2004-01-19 16:58:43 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>
@@ -101,7 +101,7 @@ attrib
101101
[ IDENT | STRING ] S* ]? ']'
102102
;
103103
pseudo
104-
: ':' [ IDENT | FUNCTION S* IDENT S* ')' ]
104+
: ':' [ IDENT | FUNCTION S* IDENT? S* ')' ]
105105
;
106106
declaration
107107
: property ':' S* expr prio?

css2/selector.src

Lines changed: 15 additions & 31 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: selector.src,v 2.83 2004-01-12 19:09:23 bbos Exp $ -->
3+
<!-- $Id: selector.src,v 2.84 2004-01-19 16:58:43 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Selectors</title>
@@ -942,45 +942,30 @@ META element, and possibly by information from the protocol (such as
942942
HTTP headers). XML uses an attribute called xml:lang, and there may be
943943
other document language-specific methods for determining the language.
944944

945-
<del cite="http://www.damowmow.com/temp/csswg/css21/issues"
946-
title="issue 124">
947945
<p>The pseudo-class ':lang(C)' matches if the element is in language
948-
C. Here C is a <span class="index-inst" title="language code">language
949-
code</span> as specified in HTML&nbsp;4.0 [[HTML40]] and RFC&nbsp;1766
950-
[[-RFC1766]]. It is matched the same way as for the <a
951-
href="#attribute-selectors">'|=' operator</a>.</p>
952-
</del>
953-
954-
<ins cite="http://www.damowmow.com/temp/csswg/css21/issues"
955-
title="issue 124">
956-
<p>The pseudo-class ':lang(C)' matches if the element is in language
957-
C. That is, whether there is a match is based solely on the string C
958-
being either equal to, or a hyphen-separated substring of, the lang
959-
attribute's value, in the same way as if performed by the <a
946+
C. Whether there is a match is based solely on the string C
947+
being either equal to, or a hyphen-separated substring of, the
948+
element's language value, in the same way as if performed by the <a
960949
href="#attribute-selectors">'|='</a> operator. The string C doesn't
961950
have to be a valid language name.</p>
962-
</ins>
963-
<ins cite="http://www.damowmow.com/temp/csswg/css21/issues" title="issue 123">
964-
Exception: if C is empty, the pseudo-class matches if the element is
965-
in <em>no</em> language, rather than in any language.
966-
</ins>
967-
968-
<ins cite="http://www.damowmow.com/temp/csswg/css21/issues"
969-
title="issue 124, 122">
970-
<p class=note>Note: It is recommended, however, that documents and
971-
protocols indicate language using codes from RFC 3066 [[RFC3066]] or
951+
952+
<p>Exception: C may be empty, but it is undefined in CSS&nbsp;2.1 what
953+
it matches in that case. (This is likely to be defined in CSS level
954+
3.)
955+
956+
<p class=note>Note: It is recommended, that documents and
957+
protocols indicate language using codes from RFC 3066 [[-RFC3066]] or
972958
its successor, and by means of "xml:lang" attributes in the case of
973959
XML-based documents [[XML]]. See <a
974960
href="http://www.w3.org/International/questions/qa-lang-2or3.html">
975961
"FAQ: Two-letter or three-letter language codes."</a></p>
976-
</ins>
977962

978963
<div class="example">
979964
<p>The following rules set the quotation marks for an HTML document
980-
that is either in <ins>Canadian</ins> French or German:</p>
965+
that is either in Canadian French or German:</p>
981966

982967
<pre>
983-
html:lang(fr<ins>-ca</ins>) { quotes: '� ' ' �' }
968+
html:lang(fr-ca) { quotes: '� ' ' �' }
984969
html:lang(de) { quotes: '�' '�' '\2039' '\203A' }
985970
:lang(fr) > Q { quotes: '� ' ' �' }
986971
:lang(de) > Q { quotes: '�' '�' '\2039' '\203A' }
@@ -1081,9 +1066,8 @@ paragraph.&lt;/P&gt;
10811066

10821067
<p> The <span class="index-inst"
10831068
title="pseudo-elements:::first-line">:first-line</span> pseudo-element
1084-
can only be attached to a block-level element <ins
1085-
cite="http://www.damowmow.com/temp/csswg/css21/issues" title="219">or
1086-
a table cell</ins>.</p>
1069+
can only be attached to a block-level element or
1070+
a table cell.</p>
10871071

10881072
<p>The "first formatted line" of an element may occur inside a
10891073
block-level descendant in the same flow (i.e., a block-level

css2/tables.src

Lines changed: 3 additions & 31 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.71 2004-01-12 19:09:23 bbos Exp $ -->
3+
<!-- $Id: tables.src,v 2.72 2004-01-19 16:58:43 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
66
<title>Tables</title>
@@ -1125,7 +1125,7 @@ table:</p>
11251125

11261126
<blockquote>
11271127
<p><var>row-width</var> = (0.5 * <var>border-width</var><sub>0</sub>)
1128-
+ <var>padding-left</var><sub><var>1</sub> +
1128+
+ <var>padding-left</var><sub>1</sub> +
11291129
<var>width</var><sub>1</sub> + <var>padding-right</var><sub>1</sub> +
11301130
<var>border-width</var><sub>1</sub> +
11311131
<var>padding-left</var><sub>2</sub> +...+
@@ -1265,35 +1265,7 @@ alt="An example of a table with collapsed borders"></P>
12651265
</div>
12661266

12671267
<div class="example">
1268-
<p>The next example shows a table with horizontal rules between the
1269-
rows. The top border of the table is set to 'hidden' to suppress the
1270-
top border of the first row. This implements the "rules"
1271-
attribute of HTML 4.0 (rules="rows").
1272-
1273-
<pre>
1274-
table[rules=rows] tr { border-top: solid }
1275-
table[rules=rows] { border-collapse: collapse;
1276-
border-top: hidden }
1277-
</pre>
1278-
1279-
<div class="figure">
1280-
<p><img src="images/tbl-rules.png" alt="Table with horizontal
1281-
rules"><p class="caption"> Table with horizontal rules between the
1282-
rows.
1283-
</div>
1284-
1285-
<p>In this case the same effect can also be achieved without setting a
1286-
'hidden' border on TABLE, by addressing the first row separately. Which
1287-
method is preferred is a matter of taste.
1288-
1289-
<pre>
1290-
tr:first-child { border-top: none }
1291-
tr { border-top: solid }
1292-
</pre>
1293-
</div>
1294-
1295-
<div class="example">
1296-
<p>Here is another example of hidden collapsing
1268+
<p>Here is an example of hidden collapsing
12971269
borders:</p>
12981270

12991271
<div class="figure">

css2/visudet.src

Lines changed: 4 additions & 4 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.88 2004-01-12 19:09:23 bbos Exp $ -->
3+
<!-- $Id: visudet.src,v 2.89 2004-01-19 16:58:43 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Visual formatting model details</title>
@@ -839,15 +839,15 @@ applies.</p>
839839

840840
<ol>
841841
<li>'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the
842-
height is <a href="root-height">based on the content,</a> set 'auto'
842+
height is <a href="#root-height">based on the content,</a> set 'auto'
843843
values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'
844844

845845
<li>'top' and 'bottom' are 'auto' and 'height' is not 'auto', then
846846
set 'top' to the static position, set 'auto' values for 'margin-top'
847847
and 'margin-bottom' to 0, and solve for 'bottom'</li>
848848

849849
<li>'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the
850-
height is <a href="root-height">based on the content,</a> set 'auto'
850+
height is <a href="#root-height">based on the content,</a> set 'auto'
851851
values for 'margin-top' and 'margin-bottom' to 0, and solve for
852852
'bottom'</li>
853853

@@ -911,7 +911,7 @@ and floating, non-replaced elements</h3>
911911
class="propinst-margin-bottom">'margin-bottom'</span> are 'auto',
912912
their used value is 0. If <span
913913
class="propinst-height">'height'</span> is 'auto', the <a
914-
href="root-height">height depends on the element's descendants.</a>
914+
href="#root-height">height depends on the element's descendants.</a>
915915

916916

917917
<h3><a name="root-height">'Auto' heights for block formatting context

0 commit comments

Comments
 (0)