Skip to content

Commit 9ef27b7

Browse files
committed
[css-text-4] canonicalize to extlang form prior to matching auto(<lang>)
This matches the proposed behavior for selectors 4 (see w3c#4212)
1 parent 63d3cf4 commit 9ef27b7

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

css-text-4/Overview.bs

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ spec: css-text-3; type: dfn
2727
text: other space separator
2828
</pre>
2929

30-
<pre class=biblio>
31-
{
32-
"IANA-LANG-SUB": {
33-
"href": "http://www.iana.org/assignments/language-subtag-registry",
34-
"title": "IANA Language Subtag Registry",
35-
"publisher": "IANA"
36-
}
37-
}
38-
</pre>
39-
4030
<h2 id="intro">
4131
Introduction</h2>
4232

@@ -203,7 +193,10 @@ Detecting Word Boundaries: the 'word-boundary-detection' property</h4>
203193
as represented in BCP 47 syntax [[BCP47]],
204194
does <em>not</em> match the language range described by the computed value's <<lang>>
205195
in an extended filtering operation
206-
per [[RFC4647]] <cite>Matching of Language Tags</cite> (section 3.3.2),
196+
per [[RFC4647]] <cite>Matching of Language Tags</cite> (section 3.3.2)
197+
with both the [=content language=] and <<lang>>
198+
<i>canonicalized</i> and converted to <i>extlang form</i>
199+
as per section 4.5 of [[!RFC5646]],
207200
then the [=used value=] is ''word-boundary-detection/manual'',
208201
and this property has no effect on this element.
209202
Otherwise,
@@ -214,16 +207,6 @@ Detecting Word Boundaries: the 'word-boundary-detection' property</h4>
214207
the specific algorithm used is UA-dependent.
215208

216209
Note: This is the same matching logic as the one used for the '':lang()'' selector.
217-
218-
Issue: Should we allow, or require, Canonicalization of language tags and ranges,
219-
as per [[RFC5646]] section 4.5,
220-
together with [[IANA-LANG-SUB]]?
221-
[[RFC4647]] section 3.2 says we should, and that seems appropriate.
222-
The last paragraph of that same section 3.2 also says
223-
we may want to consider mappings like zh-HK to zh-yue,
224-
and that too seems appropriate,
225-
but as far as I know there's no equivalent to [[IANA-LANG-SUB]]
226-
for such mappings.
227210
</dl>
228211

229212
<div class=example>

0 commit comments

Comments
 (0)