Skip to content

Commit 15e0547

Browse files
committed
Clarify where the content language of an element comes from
1 parent 5ce6790 commit 15e0547

2 files changed

Lines changed: 51 additions & 8 deletions

File tree

css3-text/Overview.html

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232

3333
<h1>CSS Text Level 3</h1>
3434

35-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 19 April 2012</h2>
35+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 21 April 2012</h2>
3636

3737
<dl>
3838
<dt>This version:
3939

4040
<dd><a href="http://dev.w3.org/csswg/css3-text/">$Date$ (CVS
4141
$Revision$)</a> <!--
42-
<dd><a href="http://www.w3.org/TR/2012/WD-css3-text-20120419/">http://www.w3.org/TR/2012/WD-css3-text-20120419/</a></dd>
42+
<dd><a href="http://www.w3.org/TR/2012/WD-css3-text-20120421/">http://www.w3.org/TR/2012/WD-css3-text-20120421/</a></dd>
4343
-->
4444

4545

@@ -469,6 +469,23 @@ <h3 id=terms><span class=secno>1.3. </span> Terminology</h3>
469469
dividing grapheme clusters by element boundaries may give inconsistent or
470470
undesired results.
471471

472+
<p>The <dfn id=content-language>content language</dfn> of an element is the
473+
(human) language the element is declared to be in, according to the rules
474+
of the <a href="http://www.w3.org/CSS21/conform.html#doclanguage">document
475+
language</a>. For example, the rules for determining the content language
476+
of an HTML element use the <code>lang</code> attribute and are defined in
477+
<a href="#HTML5" rel=biblioentry>[HTML5]<!--{{HTML5}}--></a>, and the
478+
rules for determining the content language of an XML element use the
479+
<code>xml:lang</code> attribute and are <a
480+
href="http://www.w3.org/TR/REC-xml/#sec-lang-tag">defined</a> in [[XML]].
481+
Note that it is possible for the <a href="#content-language"><i>content
482+
language</i></a> of an element to be unknown.
483+
484+
<p>Other terminology and concepts used in this specification are defined in
485+
<a href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a> and <a
486+
href="#CSS3-WRITING-MODES"
487+
rel=biblioentry>[CSS3-WRITING-MODES]<!--{{!CSS3-WRITING-MODES}}--></a>.
488+
472489
<h2 id=transforming><span class=secno>2. </span> Transforming Text</h2>
473490

474491
<h3 id=text-transform><span class=secno>2.1. </span> <a name=caps-prop></a>
@@ -566,9 +583,11 @@ <h3 id=text-transform><span class=secno>2.1. </span> <a name=caps-prop></a>
566583
must use the full case mappings for Unicode characters, including any
567584
conditional casing rules, as defined in Default Case Algorithm section. If
568585
(and only if) the content language of the element is, according to the
569-
rules of the document language, known, then any appropriate
570-
language-specific rules must be applied as well. These minimally include,
571-
but are not limited to, the language-specific rules in Unicode's <a
586+
rules of the <a
587+
href="http://www.w3.org/CSS21/conform.html#doclanguage">document
588+
language</a>, known, then any appropriate language-specific rules must be
589+
applied as well. These minimally include, but are not limited to, the
590+
language-specific rules in Unicode's <a
572591
href="http://www.unicode.org/Public/UNIDATA/SpecialCasing.txt">SpecialCasing.txt</a>.
573592

574593

@@ -1611,7 +1630,7 @@ <h3 id=text-wrap><span class=secno>6.1. </span> Text Wrap Settings: the
16111630
<tr>
16121631
<th><a href="#values">Value</a>:
16131632

1614-
<td>normal | none | avoid
1633+
<td>normal | nowrap | avoid
16151634

16161635
<tr>
16171636
<th>Initial:
@@ -4756,6 +4775,15 @@ <h3 class=no-num id=informative-ref>Informative references</h3>
47564775
</dd>
47574776
<!---->
47584777

4778+
<dt id=HTML5>[HTML5]
4779+
4780+
<dd>Ian Hickson. <a
4781+
href="http://www.w3.org/TR/2011/WD-html5-20110525/"><cite>HTML5.</cite></a>
4782+
25 May 2011. W3C Working Draft. (Work in progress.) URL: <a
4783+
href="http://www.w3.org/TR/2011/WD-html5-20110525/">http://www.w3.org/TR/2011/WD-html5-20110525/</a>
4784+
</dd>
4785+
<!---->
4786+
47594787
<dt id=JIS4051>[JIS4051]
47604788

47614789
<dd><cite>Formatting rules for Japanese documents
@@ -5880,7 +5908,7 @@ <h2 class=no-num id=appendix-h-full-property-index>Appendix H: Full
58805908
<tr>
58815909
<th><a class=property href="#text-wrap0">text-wrap</a>
58825910

5883-
<td>normal | none | avoid
5911+
<td>normal | nowrap | avoid
58845912

58855913
<td>normal
58865914

css3-text/Overview.src.html

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,20 @@ <h3 id="terms">
192192
to both. Authors are forewarned that dividing grapheme clusters by
193193
element boundaries may give inconsistent or undesired results.
194194

195+
<p>The <dfn>content language</dfn> of an element is the (human) language
196+
the element is declared to be in, according to the rules of the
197+
<a href="http://www.w3.org/CSS21/conform.html#doclanguage">document language</a>.
198+
For example, the rules for determining the content language of an HTML
199+
element use the <code>lang</code> attribute and are defined in [[HTML5]],
200+
and the rules for determining the content language of an XML element use
201+
the <code>xml:lang</code> attribute and are
202+
<a href="http://www.w3.org/TR/REC-xml/#sec-lang-tag">defined</a> in [[XML]].
203+
Note that it is possible for the <i>content language</i> of an element
204+
to be unknown.
205+
206+
<p>Other terminology and concepts used in this specification are defined
207+
in [[!CSS21]] and [[!CSS3-WRITING-MODES]].
208+
195209
<h2 id="transforming">
196210
Transforming Text</h2>
197211

@@ -268,7 +282,8 @@ <h3 id="text-transform">
268282
[[!UNICODE]]. The UA must use the full case mappings for Unicode
269283
characters, including any conditional casing rules, as defined in
270284
Default Case Algorithm section. If (and only if) the content language
271-
of the element is, according to the rules of the document language,
285+
of the element is, according to the rules of the
286+
<a href="http://www.w3.org/CSS21/conform.html#doclanguage">document language</a>,
272287
known, then any appropriate language-specific rules must be applied
273288
as well.
274289
These minimally include, but are not limited to, the language-specific

0 commit comments

Comments
 (0)