Skip to content

Commit ccc6dcc

Browse files
committed
Update plaintext definition per WG discussion so that block behavior and inline behavior match.
1 parent 79843d6 commit ccc6dcc

2 files changed

Lines changed: 33 additions & 23 deletions

File tree

css3-writing-modes/Overview.html

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ <h3 id=unicode-bidi><span class=secno>2.2. </span> Embeddings and
651651
<tr>
652652
<th>Value:
653653

654-
<td>normal | embed | [ isolate || [ plaintext | bidi-override ] ]
654+
<td>normal | embed | [ isolate || bidi-override ] | plaintext ]
655655

656656
<tr>
657657
<th>Initial:
@@ -710,23 +710,14 @@ <h3 id=unicode-bidi><span class=secno>2.2. </span> Embeddings and
710710

711711
<dd>For the purposes of the Unicode bidirectional algorithm, the contents
712712
of the element are considered to be inside a separate, independent
713-
paragraph, and for the purpose of bidi resolution in its containing bidi
713+
paragraph with a base directionality given by the element's &lsquo;<a
714+
href="#direction0"><code class=property>direction</code></a>&rsquo;
715+
property, and for the purpose of bidi resolution in its containing bidi
714716
paragraph (if any), the element itself is treated as if it were an Object
715717
Replacement Character (U+FFFC). (If the element is broken across multiple
716718
lines, then each box of the element is treated as an Object Replacement
717719
Character.)
718720

719-
<dt><dfn id=plaintext>plaintext</dfn>
720-
721-
<dd>
722-
<p>For the purposes of the Unicode bidirectional algorithm, the base
723-
directionality of each bidi paragraph for which the element forms the
724-
containing block is determined not by the element's computed &lsquo;<a
725-
href="#direction0"><code class=property>direction</code></a>&rsquo; as
726-
usual, but by following rules P2 and P3 of the Unicode bidirectional
727-
algorithm. For inline elements, this value is equivalent to &lsquo;<a
728-
href="#isolate"><code class=css>isolate</code></a>&rsquo;.
729-
730721
<dt><dfn id=bidi-override>bidi-override</dfn>
731722

732723
<dd>For inline elements this creates an override. For block-container
@@ -739,6 +730,21 @@ <h3 id=unicode-bidi><span class=secno>2.2. </span> Embeddings and
739730
class=css>direction: ltr</code>&rsquo;, or RLO (U+202E), for &lsquo;<code
740731
class=css>direction: rtl</code>&rsquo;, at the start of the element and a
741732
PDF (U+202C) at the end of the element.
733+
734+
<dt><dfn id=plaintext>plaintext</dfn>
735+
736+
<dd>
737+
<p>For the purposes of the Unicode bidirectional algorithm, the base
738+
directionality of each bidi paragraph for which the element forms the
739+
containing block is determined not by the element's computed &lsquo;<a
740+
href="#direction0"><code class=property>direction</code></a>&rsquo; as
741+
usual, but by following the heuristic in rules P2 and P3 of the Unicode
742+
bidirectional algorithm. For inline elements, this value behaves as for
743+
&lsquo;<a href="#isolate"><code class=css>isolate</code></a>&rsquo;,
744+
except, as with block containers, the base directionality is determined
745+
by following the Unicode heuristic instead of by using the &lsquo;<a
746+
href="#direction0"><code class=property>direction</code></a>&rsquo;
747+
value.
742748
</dl>
743749

744750
<p>The final order of characters within in each bidi paragraph is the same
@@ -3727,7 +3733,7 @@ <h2 class=no-num id=property-index> Property Index</h2>
37273733
<tr>
37283734
<td><a class=property href="#unicode-bidi0">unicode-bidi</a>
37293735

3730-
<td>normal | embed | [ isolate || [ plaintext | bidi-override ] ]
3736+
<td>normal | embed | [ isolate || bidi-override ] | plaintext ]
37313737

37323738
<td>normal
37333739

css3-writing-modes/Overview.src.html

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ <h3 id="unicode-bidi">
357357
</tr>
358358
<tr>
359359
<th>Value:</th>
360-
<td>normal | embed | [ isolate || [ plaintext | bidi-override ] ]
360+
<td>normal | embed | [ isolate || bidi-override ] | plaintext ]
361361
</tr>
362362
<tr>
363363
<th>Initial:</th>
@@ -406,18 +406,12 @@ <h3 id="unicode-bidi">
406406
<dt><dfn>isolate</dfn></dt>
407407
<dd>For the purposes of the Unicode bidirectional algorithm, the
408408
contents of the element are considered to be inside a separate,
409-
independent paragraph, and for the purpose of bidi resolution
409+
independent paragraph with a base directionality given by the
410+
element's 'direction' property, and for the purpose of bidi resolution
410411
in its containing bidi paragraph (if any), the element itself is
411412
treated as if it were an Object Replacement Character (U+FFFC).
412413
(If the element is broken across multiple lines, then each box
413414
of the element is treated as an Object Replacement Character.)</dd>
414-
<dt><dfn>plaintext</dfn></dt>
415-
<dd><p>For the purposes of the Unicode bidirectional algorithm, the
416-
base directionality of each bidi paragraph for which the element
417-
forms the containing block is determined not by the element's
418-
computed 'direction' as usual, but by following rules P2
419-
and P3 of the Unicode bidirectional algorithm.
420-
For inline elements, this value is equivalent to ''isolate''.
421415
<dt><dfn>bidi-override</dfn></dt>
422416
<dd>For inline elements this creates an override. For block-container
423417
elements this creates an override for inline-level descendants not
@@ -427,6 +421,16 @@ <h3 id="unicode-bidi">
427421
is ignored. This corresponds to adding a LRO (U+202D), for ''direction:
428422
ltr'', or RLO (U+202E), for ''direction: rtl'', at the start of the
429423
element and a PDF (U+202C) at the end of the element.</dd>
424+
<dt><dfn>plaintext</dfn></dt>
425+
<dd><p>For the purposes of the Unicode bidirectional algorithm, the
426+
base directionality of each bidi paragraph for which the element
427+
forms the containing block is determined not by the element's
428+
computed 'direction' as usual, but by following the heuristic in
429+
rules P2 and P3 of the Unicode bidirectional algorithm.
430+
For inline elements, this value behaves as for ''isolate'',
431+
except, as with block containers, the base directionality is
432+
determined by following the Unicode heuristic instead of by using
433+
the 'direction' value.
430434
</dl>
431435

432436
<p>The final order of characters within in each bidi paragraph is the

0 commit comments

Comments
 (0)