Skip to content

Commit 85ba53b

Browse files
committed
Stabilize caret position in an editable plaintext by using directionality of prevous bidi paragraph. <https://www.w3.org/Bugs/Public/show_bug.cgi?id=16564>
1 parent 62eafd9 commit 85ba53b

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

css3-text/Overview.html

Lines changed: 6 additions & 3 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 29 March 2012</h2>
35+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 30 March 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-20120329/">http://www.w3.org/TR/2012/WD-css3-text-20120329/</a></dd>
42+
<dd><a href="http://www.w3.org/TR/2012/WD-css3-text-20120330/">http://www.w3.org/TR/2012/WD-css3-text-20120330/</a></dd>
4343
-->
4444

4545

@@ -1986,7 +1986,10 @@ <h3 id=text-align><span class=secno>7.1. </span> Text Alignment: the
19861986
href="#CSS3-WRITING-MODES"
19871987
rel=biblioentry>[CSS3-WRITING-MODES]<!--{{!CSS3-WRITING-MODES}}--></a>,
19881988
the inline base direction of its line boxes will be determined by the bidi
1989-
paragraphs it contains.
1989+
paragraphs it contains. In the case of an empty bidi paragraph, the
1990+
direction used is that of the previous bidi paragraph, or, if this is the
1991+
first bidi paragraph in the containing block, then the &lsquo;<code
1992+
class=property>direction</code>&rsquo; property is used.
19901993

19911994
<div class=example>
19921995
<p>In the following example, every other line is right-aligned:</p>

css3-text/Overview.src.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,10 @@ <h3 id="text-align">
13831383
this means using the containing block's computed 'direction'. However if
13841384
containing block has ''unicode-bidi: plaintext'' [[!CSS3-WRITING-MODES]],
13851385
the inline base direction of its line boxes will be determined by the bidi
1386-
paragraphs it contains.
1386+
paragraphs it contains. In the case of an empty bidi paragraph, the
1387+
direction used is that of the previous bidi paragraph, or, if this is the
1388+
first bidi paragraph in the containing block, then the 'direction'
1389+
property is used.
13871390

13881391
<div class="example">
13891392
<p>In the following example, every other line is right-aligned:</p>

0 commit comments

Comments
 (0)