Skip to content

Commit 1c4f9c7

Browse files
committed
1 parent 09d2fd9 commit 1c4f9c7

2 files changed

Lines changed: 23 additions & 19 deletions

File tree

css3-writing-modes/Overview.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -710,13 +710,7 @@ <h3 id=unicode-bidi><span class=secno>2.2. </span>Embeddings and Overrides:
710710
as if the bidi control codes had been added as described above, markup had
711711
been stripped, and the resulting character sequence had been passed to an
712712
implementation of the Unicode bidirectional algorithm for plain text that
713-
produced the same line-breaks as the styled text. If an inline element is
714-
broken around a bidi paragraph boundary (e.g. if split by a block or
715-
forced paragraph break), then the bidi control codes corresponding to the
716-
end of the element are added before the interruption and the codes
717-
corresponding to the start of the element are added after it. (In other
718-
words, any embedding levels or overrides started by the element are closed
719-
at the paragraph break and reopened on the other side of it.)
713+
produced the same line-breaks as the styled text.
720714

721715
<p>In this process, replaced elements with &lsquo;<code class=css>display:
722716
inline</code>&rsquo; are treated as neutral characters, unless their
@@ -728,6 +722,14 @@ <h3 id=unicode-bidi><span class=secno>2.2. </span>Embeddings and Overrides:
728722
class=property>direction</code></a>&rsquo; specified for the element. All
729723
other atomic inline-level boxes are treated as neutral characters always.
730724

725+
<p>If an inline element is broken around a bidi paragraph boundary (e.g. if
726+
split by a block or forced paragraph break), then the bidi control codes
727+
corresponding to the end of the element are added before the interruption
728+
and the codes corresponding to the start of the element are added after
729+
it. (In other words, any embedding levels or overrides started by the
730+
element are closed at the paragraph break and reopened on the other side
731+
of it.)
732+
731733
<p>Please note that in order to be able to flow inline boxes in a uniform
732734
direction (either entirely left-to-right or entirely right-to-left), more
733735
inline boxes (including anonymous inline boxes) may have to be created,
@@ -748,6 +750,9 @@ <h3 id=unicode-bidi><span class=secno>2.2. </span>Embeddings and Overrides:
748750
class=css>unicode-bidi: isolate</code>&rsquo; is preferred to keep the
749751
element together in case display is changed to inline (see example below).
750752

753+
<h3 id=bidi-example><span class=secno>2.3. </span>Example of Bidirectional
754+
Text</h3>
755+
751756
<p>The following example shows an XML document with bidirectional text. It
752757
illustrates an important design principle: document language designers
753758
should take bidi into account both in the language proper (elements and
@@ -756,9 +761,6 @@ <h3 id=unicode-bidi><span class=secno>2.2. </span>Embeddings and Overrides:
756761
such rules should not be overridden by other style sheets so that the
757762
document language's bidi behavior is preserved.
758763

759-
<h3 id=bidi-example><span class=secno>2.3. </span>Example of Bidirectional
760-
Text</h3>
761-
762764
<div class=example>
763765
<p>In this example, lowercase letters stand for inherently left-to-right
764766
characters and uppercase letters represent inherently right-to-left

css3-writing-modes/Overview.src.html

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -419,13 +419,7 @@ <h3 id="unicode-bidi">Embeddings and Overrides: the 'unicode-bidi' property</h3>
419419
markup had been stripped, and the resulting character sequence had
420420
been passed to an implementation of the Unicode bidirectional
421421
algorithm for plain text that produced the same line-breaks as the
422-
styled text. If an inline element is broken around a bidi paragraph
423-
boundary (e.g. if split by a block or forced paragraph break), then
424-
the bidi control codes corresponding to the end of the element are
425-
added before the interruption and the codes corresponding to the
426-
start of the element are added after it. (In other words, any embedding
427-
levels or overrides started by the element are closed at the paragraph
428-
break and reopened on the other side of it.)
422+
styled text.
429423

430424
<p>In this process, replaced elements with 'display: inline' are treated
431425
as neutral characters, unless their 'unicode-bidi' property has a
@@ -434,6 +428,14 @@ <h3 id="unicode-bidi">Embeddings and Overrides: the 'unicode-bidi' property</h3>
434428
All other atomic inline-level boxes are treated as neutral characters
435429
always.</p>
436430

431+
<p>If an inline element is broken around a bidi paragraph
432+
boundary (e.g. if split by a block or forced paragraph break), then
433+
the bidi control codes corresponding to the end of the element are
434+
added before the interruption and the codes corresponding to the
435+
start of the element are added after it. (In other words, any embedding
436+
levels or overrides started by the element are closed at the paragraph
437+
break and reopened on the other side of it.)
438+
437439
<p>Please note that in order to be able to flow inline boxes in a
438440
uniform direction (either entirely left-to-right or entirely
439441
right-to-left), more inline boxes (including anonymous inline boxes)
@@ -451,6 +453,8 @@ <h3 id="unicode-bidi">Embeddings and Overrides: the 'unicode-bidi' property</h3>
451453
'unicode-bidi: isolate' is preferred to keep the element together in
452454
case display is changed to inline (see example below).</p>
453455

456+
<h3 id="bidi-example">Example of Bidirectional Text</h3>
457+
454458
<p>The following example shows an XML document with bidirectional
455459
text. It illustrates an important design principle: document language
456460
designers should take bidi into account both in the language proper
@@ -459,8 +463,6 @@ <h3 id="unicode-bidi">Embeddings and Overrides: the 'unicode-bidi' property</h3>
459463
other style rules, and such rules should not be overridden by other
460464
style sheets so that the document language's bidi behavior is preserved.</p>
461465

462-
<h3 id="bidi-example">Example of Bidirectional Text</h3>
463-
464466
<div class="example">
465467
<p>In this example, lowercase letters stand for inherently left-to-right
466468
characters and uppercase letters represent inherently right-to-left

0 commit comments

Comments
 (0)