|
1 | 1 | <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'> |
2 | 2 | <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 $ --> |
4 | 4 | <head> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
6 | 6 | <title>Selectors</title> |
@@ -942,45 +942,30 @@ META element, and possibly by information from the protocol (such as |
942 | 942 | HTTP headers). XML uses an attribute called xml:lang, and there may be |
943 | 943 | other document language-specific methods for determining the language. |
944 | 944 |
|
945 | | -<del cite="http://www.damowmow.com/temp/csswg/css21/issues" |
946 | | -title="issue 124"> |
947 | 945 | <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 4.0 [[HTML40]] and RFC 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 |
960 | 949 | href="#attribute-selectors">'|='</a> operator. The string C doesn't |
961 | 950 | 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 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 |
972 | 958 | its successor, and by means of "xml:lang" attributes in the case of |
973 | 959 | XML-based documents [[XML]]. See <a |
974 | 960 | href="http://www.w3.org/International/questions/qa-lang-2or3.html"> |
975 | 961 | "FAQ: Two-letter or three-letter language codes."</a></p> |
976 | | -</ins> |
977 | 962 |
|
978 | 963 | <div class="example"> |
979 | 964 | <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> |
981 | 966 |
|
982 | 967 | <pre> |
983 | | -html:lang(fr<ins>-ca</ins>) { quotes: '� ' ' �' } |
| 968 | +html:lang(fr-ca) { quotes: '� ' ' �' } |
984 | 969 | html:lang(de) { quotes: '�' '�' '\2039' '\203A' } |
985 | 970 | :lang(fr) > Q { quotes: '� ' ' �' } |
986 | 971 | :lang(de) > Q { quotes: '�' '�' '\2039' '\203A' } |
@@ -1081,9 +1066,8 @@ paragraph.</P> |
1081 | 1066 |
|
1082 | 1067 | <p> The <span class="index-inst" |
1083 | 1068 | 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> |
1087 | 1071 |
|
1088 | 1072 | <p>The "first formatted line" of an element may occur inside a |
1089 | 1073 | block-level descendant in the same flow (i.e., a block-level |
|
0 commit comments