Skip to content

Commit c1bf4a6

Browse files
committed
Attempt to capture roc's line breaking control scoping rules
1 parent 8991879 commit c1bf4a6

2 files changed

Lines changed: 44 additions & 24 deletions

File tree

css3-text/Overview.html

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@
2929

3030
<h1>CSS Text Level 3</h1>
3131

32-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 7 January 2012</h2>
32+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 10 January
33+
2012</h2>
3334

3435
<dl>
3536
<dt>This version:
3637

37-
<dd><a href="http://dev.w3.org/csswg/css3-text/">$Date: 2012/01/06
38-
22:59:32 $ (CVS $Revision$)</a> <!--
39-
<dd><a href="http://www.w3.org/TR/2012/WD-css3-text-20120107/">http://www.w3.org/TR/2012/WD-css3-text-20120107/</a></dd>
38+
<dd><a href="http://dev.w3.org/csswg/css3-text/">$Date: 2012/01/07
39+
01:20:41 $ (CVS $Revision$)</a> <!--
40+
<dd><a href="http://www.w3.org/TR/2012/WD-css3-text-20120110/">http://www.w3.org/TR/2012/WD-css3-text-20120110/</a></dd>
4041
-->
4142

4243

@@ -258,9 +259,8 @@ <h2 class="no-num no-toc" id=contents> Table of Contents</h2>
258259
Settings: the &lsquo;<code class=property>text-wrap</code>&rsquo;
259260
property</a>
260261
<ul class=toc>
261-
<li><a href="#example-avoid"><span class=secno>6.1.1. </span> Example
262-
of using &lsquo;<code class=css>text-wrap: avoid</code>&rsquo; in
263-
presenting a footer</a>
262+
<li><a href="#example-avoid"><span class=secno>6.1.1. </span>
263+
Phrase-controlled Breaking</a>
264264
</ul>
265265

266266
<li><a href="#overflow-wrap"><span class=secno>6.2. </span> Emergency
@@ -1183,7 +1183,16 @@ <h2 id=line-breaking><span class=secno>4. </span> Line Breaking and Word
11831183
the typesetting style.
11841184

11851185
<p>CSS does not fully define where line breaking opportunities occur,
1186-
however some controls are provided to distinguish common variations.
1186+
however some controls are provided to distinguish common variations. For
1187+
breaking opportunities created by characters that disappear at the line
1188+
break (i.e. spaces), properties on the element containing that character
1189+
control the line breaking at that opportunity. For breaking opportunities
1190+
defined by the boundary between two characters, the properties on the
1191+
element containing the boundary control breaking.
1192+
<!-- http://lists.w3.org/Archives/Public/www-style/2008Dec/0043.html -->
1193+
<span class=issue>What about Zs outside of U+0020?</span> For break
1194+
opportunities given by the first or last character of a box, the break
1195+
occurs immediately before/after the box rather than breaking the box.
11871196

11881197
<p class=note>Further information on line breaking conventions can be found
11891198
in <a href="#JLREQ" rel=biblioentry>[JLREQ]<!--{{JLREQ}}--></a> and <a
@@ -1198,17 +1207,17 @@ <h2 id=line-breaking><span class=secno>4. </span> Line Breaking and Word
11981207
<p class=issue>Any guidance for appropriate references here would be much
11991208
appreciated.
12001209

1201-
<p>Floated and absolutely-positioned elements do not introduce a line
1202-
breaking opportunity. The line breaking behavior of a replaced element is
1203-
equivalent to that of the Object Replacement Character (U+FFFC).
1204-
12051210
<p class=issue>It is not clear whether this section handles Southeast Asian
12061211
scripts well. Additionally, some guidance should be provided on how to
12071212
break or not break Southeast Asian in the absence of a dictionary. (See
12081213
e.g. <a
12091214
href="http://lists.w3.org/Archives/Public/www-style/2011Feb/0126.html">notes
12101215
on Thai</a>.)
12111216

1217+
<p>Floated and absolutely-positioned elements do not introduce a line
1218+
breaking opportunity. The line breaking behavior of a replaced element is
1219+
equivalent to that of the Object Replacement Character (U+FFFC).
1220+
12121221
<h3 id=line-break><span class=secno>4.1. </span> Line Breaking Strictness:
12131222
the &lsquo;<a href="#line-break0"><code
12141223
class=property>line-break</code></a>&rsquo; property</h3>
@@ -1688,13 +1697,13 @@ <h3 id=text-wrap><span class=secno>6.1. </span> Text Wrap Settings: the
16881697
narrow measures.</p>
16891698
<!-- add a sample prioritization algorithm -->
16901699

1691-
<h4 id=example-avoid><span class=secno>6.1.1. </span> Example of using
1692-
&lsquo;<code class=css>text-wrap: avoid</code>&rsquo; in presenting a
1693-
footer</h4>
1700+
<h4 id=example-avoid><span class=secno>6.1.1. </span> Phrase-controlled
1701+
Breaking</h4>
16941702

16951703
<div class=example>
1696-
<p>The priority of breakpoints can be set to reflect the intended grouping
1697-
of text.</p>
1704+
<p>Using &lsquo;<code class=css>text-wrap: avoid</code>&rsquo;, the
1705+
priority of breakpoints can be set to reflect the intended grouping of
1706+
text.</p>
16981707

16991708
<p>Given the rules</p>
17001709

css3-text/Overview.src.html

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,17 @@ <h2 id="line-breaking">
763763

764764
<p>CSS does not fully define where line breaking opportunities occur,
765765
however some controls are provided to distinguish common variations.
766+
For breaking opportunities created by characters that disappear at the
767+
line break (i.e. spaces), properties on the element containing that
768+
character control the line breaking at that opportunity.
769+
For breaking opportunities defined by the boundary between two characters,
770+
the properties on the element containing the boundary control breaking.
771+
<!-- http://lists.w3.org/Archives/Public/www-style/2008Dec/0043.html -->
772+
<span class="issue">What about Zs outside of U+0020?</span>
773+
For break opportunities given by the first or last character of a
774+
box, the break occurs immediately before/after the box rather than
775+
breaking the box.
776+
766777

767778
<p class="note">Further information on line breaking conventions can be
768779
found in
@@ -776,15 +787,15 @@ <h2 id="line-breaking">
776787
<p class="issue">Any guidance for appropriate references here would be
777788
much appreciated.</p>
778789

779-
<p>Floated and absolutely-positioned elements do not introduce a line
780-
breaking opportunity. The line breaking behavior of a replaced element
781-
is equivalent to that of the Object Replacement Character (U+FFFC).</p>
782-
783790
<p class="issue">It is not clear whether this section handles Southeast Asian
784791
scripts well. Additionally, some guidance should be provided on how to
785792
break or not break Southeast Asian in the absence of a dictionary.
786793
(See e.g. <a href="http://lists.w3.org/Archives/Public/www-style/2011Feb/0126.html">notes on Thai</a>.)</p>
787794

795+
<p>Floated and absolutely-positioned elements do not introduce a line
796+
breaking opportunity. The line breaking behavior of a replaced element
797+
is equivalent to that of the Object Replacement Character (U+FFFC).
798+
788799
<h3 id="line-break">
789800
Line Breaking Strictness: the 'line-break' property</h3>
790801

@@ -1166,11 +1177,11 @@ <h3 id="text-wrap">
11661177
<!-- add a sample prioritization algorithm -->
11671178

11681179
<h4 id="example-avoid">
1169-
Example of using 'text-wrap: avoid' in presenting a footer</h4>
1180+
Phrase-controlled Breaking</h4>
11701181

11711182
<div class="example">
1172-
<p>The priority of breakpoints can be set to reflect the intended
1173-
grouping of text.</p>
1183+
<p>Using ''text-wrap: avoid'', the priority of breakpoints can be set
1184+
to reflect the intended grouping of text.</p>
11741185

11751186
<p>Given the rules</p>
11761187
<pre>

0 commit comments

Comments
 (0)