Skip to content

Commit e90aa66

Browse files
committed
[css-text-4] Guidance for UA activation and related authoring practices
1 parent 6392861 commit e90aa66

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

css-text-4/Overview.bs

+22
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,28 @@ Detecting Word Boundaries: the 'word-boundary-detection' property</h4>
251251
</code></pre>
252252
</div>
253253

254+
User Agents may activate
255+
language-specific content analysis
256+
in response to user preferences.
257+
User Agents with this behavior must do this
258+
by setting the [=declared value=] of 'word-boundary-detection' to ''word-boundary-detection/auto(<<lang>>)''
259+
in the [=User Origin=].
260+
User Agents that do not support the [=User Origin=]
261+
may use the [=User Agent Origin=] instead.
262+
263+
<div class=advisement>
264+
Manual analysis of the content can be more reliable than UA heuristics.
265+
For best results, authors who can perform this analysis are encouraged to markup their documents
266+
using <{wbr}> or U+200B
267+
to exhaustively indicate word boundaries.
268+
269+
Authors who prepare their content in this manner
270+
should not rely on the initial value, and
271+
should explicitely specify ''word-boundary-detection: manual'' on the relevant parts of the content,
272+
in order to override a potential ''word-boundary-detection: auto(<<lang>>)''
273+
in the [=User Origin=] or [=User Agent Origin=].
274+
</div>
275+
254276
[=Virtual word boundary=] insertion happens before [[CSS-TEXT-3#white-space-phase-1]]
255277
and before [[#word-boundary-expansion]].
256278
Later operations

0 commit comments

Comments
 (0)