|
2 | 2 |
|
3 | 3 | Issues: |
4 | 4 | bidi |
5 | | - line-stacking |
| 5 | + box layout/sizing |
6 | 6 |
|
7 | 7 | Redo all examples with consistent font. (M+ 2p?) |
8 | 8 |
|
|
20 | 20 |
|
21 | 21 | <meta content="CSS Ruby Module Level 1" name=dcterms.title> |
22 | 22 | <meta content=text name=dcterms.type> |
23 | | - <meta content=2013-06-25 name=dcterms.date> |
| 23 | + <meta content=2013-07-09 name=dcterms.date> |
24 | 24 | <meta content="Elika J. Etemad" name=dcterms.creator> |
25 | 25 | <meta content="Koji Ishii" name=dcterms.creator> |
26 | 26 | <meta content="Richard Ishida" name=dcterms.creator> |
|
41 | 41 | <h1 class=p-name>CSS Ruby Module Level 1</h1> |
42 | 42 |
|
43 | 43 | <h2 class="no-num no-toc" id=longstatus-date->Editor's Draft <time |
44 | | - class=dt-updated datetime=20130625>25 June 2013</time> |
45 | | - <!-- for HTML4 doctype: <span class="value-title" title="20130625">25 June 2013</span></span> --></h2> |
| 44 | + class=dt-updated datetime=20130709> 9 July 2013</time> |
| 45 | + <!-- for HTML4 doctype: <span class="value-title" title="20130709"> 9 July 2013</span></span> --></h2> |
46 | 46 |
|
47 | 47 | <dl> |
48 | 48 | <dt>This version: |
@@ -211,10 +211,13 @@ <h2 class="no-num no-toc" id=contents> Table of Contents</h2> |
211 | 211 | <li><a href="#white-space"><span class=secno>2.5. </span> White |
212 | 212 | Space</a> |
213 | 213 |
|
214 | | - <li><a href="#line-breaking"><span class=secno>2.6. </span> Ruby box and |
| 214 | + <li><a href="#ruby-layout"><span class=secno>2.6. </span> Ruby |
| 215 | + layout</a> |
| 216 | + |
| 217 | + <li><a href="#line-breaking"><span class=secno>2.7. </span> Ruby box and |
215 | 218 | line breaking</a> |
216 | 219 |
|
217 | | - <li><a href="#line-height"><span class=secno>2.7. </span> Ruby box and |
| 220 | + <li><a href="#line-height"><span class=secno>2.8. </span> Ruby box and |
218 | 221 | line stacking</a> |
219 | 222 | </ul> |
220 | 223 |
|
@@ -563,7 +566,7 @@ <h3 id=pairing><span class=secno>2.3. </span> Ruby Pairing and Annotation |
563 | 566 | Levels</h3> |
564 | 567 |
|
565 | 568 | <p>Within a ruby structure, each <a href="#ruby-base-box"><i>ruby |
566 | | - bases</i></a> are associated with <a href="#ruby-annotation-box"><i>ruby |
| 569 | + base</i></a> is associated with <a href="#ruby-annotation-box"><i>ruby |
567 | 570 | annotations</i></a> and vice versa. A <a href="#ruby-base-box"><i>ruby |
568 | 571 | base</i></a> can be associated with at most one <a |
569 | 572 | href="#ruby-annotation-box"><i>ruby annotation</i></a> per annotation |
@@ -719,7 +722,8 @@ <h3 id=white-space><span class=secno>2.5. </span> White Space</h3> |
719 | 722 | space is not discarded. If such white space is <i>collapsible</i>, it will |
720 | 723 | collapse following the standard <a |
721 | 724 | href="http://www.w3.org/TR/css3-text/#white-space-rules">white space |
722 | | - processing rules</a>. [[!CSS3-TEXT]] Between <a |
| 725 | + processing rules</a>. <a href="#CSS3TEXT" |
| 726 | + rel=biblioentry>[CSS3TEXT]<!--{{!CSS3TEXT}}--></a> Between <a |
723 | 727 | href="#ruby-segments"><i>ruby segments</i></a>, however, the contextual |
724 | 728 | text for determining collapsing behavior is given by the <a |
725 | 729 | href="#ruby-base-box"><i>ruby bases</i></a> on either side, not the text |
@@ -780,7 +784,47 @@ <h3 id=white-space><span class=secno>2.5. </span> White Space</h3> |
780 | 784 |
|
781 | 785 | <p class=issue>Specify how this impacts layout, or not. |
782 | 786 |
|
783 | | - <h3 id=line-breaking><span class=secno>2.6. </span> Ruby box and line |
| 787 | + <h3 id=ruby-layout><span class=secno>2.6. </span> Ruby layout</h3> |
| 788 | + |
| 789 | + <p>When a ruby structure is laid out, its base level is laid out on the |
| 790 | + line, aligned according to its ‘<code |
| 791 | + class=property>vertical-align</code>’ property exactly as if it were a |
| 792 | + regular sequence of <i>inline</i> boxes. Each <a |
| 793 | + href="#ruby-base-container-box"><i>ruby base container</i></a> is sized |
| 794 | + and positioned to contain exactly the full height of its <a |
| 795 | + href="#ruby-base-box"><i>ruby bases</i></a>. |
| 796 | + |
| 797 | + <p><a href="#ruby-annotation-box"><i>Ruby annotations</i></a> associated |
| 798 | + with the base level are then positioned with respect to their <a |
| 799 | + href="#ruby-base-box"><i>ruby base boxes</i></a> according to the |
| 800 | + applicable ‘<a href="#ruby-position"><code |
| 801 | + class=property>ruby-position</code></a>’ values. <a |
| 802 | + href="#ruby-annotation-box"><i>Ruby annotations</i></a> within a level |
| 803 | + (within a single <a href="#ruby-container-box"><i>ruby container</i></a>) |
| 804 | + are aligned to each other as if they were inline boxes participating in |
| 805 | + the same inline formatting context. Each <a |
| 806 | + href="#ruby-annotation-container-box"><i>ruby annotation container</i></a> |
| 807 | + is sized and positioned to contain exactly the full height of its <a |
| 808 | + href="#ruby-annotation-box"><i>ruby annotations</i></a>. |
| 809 | + |
| 810 | + <p>A ruby container (or fragment thereof) measures as wide as the content |
| 811 | + of its widest level. (In the case of ‘<code |
| 812 | + class=css>inter-character</code>’ annotations, they are spliced in and |
| 813 | + measured as part of the base level.) Similarly, <a |
| 814 | + href="#ruby-base-box"><i>ruby base boxes</i></a> and <a |
| 815 | + href="#ruby-annotation-box"><i>ruby annotation boxes</i></a> within a ruby |
| 816 | + “column” have the measure of the widest content in that “column”. |
| 817 | + In the case of spanning <i>annotations</i> (whether actual spanning or |
| 818 | + pretending to span per ‘<code class=property>ruby-collapse</code>’), |
| 819 | + the measures of the <a href="#ruby-annotation-box"><i>ruby annotation |
| 820 | + box</i></a> and the sum of its associated <a href="#ruby-base-box"><i>ruby |
| 821 | + base boxes</i></a> must match. |
| 822 | + |
| 823 | + <p>How the extra space is distributed when ruby content is narrower than |
| 824 | + the measure of its box is specified by the ‘<a href="#ruby-align"><code |
| 825 | + class=property>ruby-align</code></a>’ property. |
| 826 | + |
| 827 | + <h3 id=line-breaking><span class=secno>2.7. </span> Ruby box and line |
784 | 828 | breaking</h3> |
785 | 829 |
|
786 | 830 | <p>When there is not enough space for an entire <a |
@@ -842,7 +886,7 @@ <h3 id=line-breaking><span class=secno>2.6. </span> Ruby box and line |
842 | 886 | breaking opportunity |
843 | 887 | </div> |
844 | 888 |
|
845 | | - <h3 id=line-height><span class=secno>2.7. </span> Ruby box and line |
| 889 | + <h3 id=line-height><span class=secno>2.8. </span> Ruby box and line |
846 | 890 | stacking</h3> |
847 | 891 |
|
848 | 892 | <p>The ‘<code class=property>line-height</code>’ property controls |
@@ -1466,6 +1510,9 @@ <h3 id=ruby-overhang><span class=secno>4.1. </span> Overhanging Ruby</h3> |
1466 | 1510 | space available for overlap is determined. It is controlled by the ‘<a |
1467 | 1511 | href="#ruby-align"><code class=property>ruby-align</code></a>’ property. |
1468 | 1512 |
|
| 1513 | + <p class=issue> I suspect overhanging interacts with alignment in some |
| 1514 | + cases; might need to look into this later. |
| 1515 | + |
1469 | 1516 | <p>This entire logic applies the same way in vertical ideographic layout, |
1470 | 1517 | only the dimension in which it works in such a layout is vertical, instead |
1471 | 1518 | of horizontal. |
@@ -2004,6 +2051,16 @@ <h3 class=no-num id=normative-references> Normative references</h3> |
2004 | 2051 | </dd> |
2005 | 2052 | <!----> |
2006 | 2053 |
|
| 2054 | + <dt id=CSS3TEXT>[CSS3TEXT] |
| 2055 | + |
| 2056 | + <dd>Elika J. Etemad; Koji Ishii. <a |
| 2057 | + href="http://www.w3.org/TR/2012/WD-css3-text-20121113/"><cite>CSS Text |
| 2058 | + Module Level 3.</cite></a> 13 November 2012. W3C Working Draft. (Work in |
| 2059 | + progress.) URL: <a |
| 2060 | + href="http://www.w3.org/TR/2012/WD-css3-text-20121113/">http://www.w3.org/TR/2012/WD-css3-text-20121113/</a> |
| 2061 | + </dd> |
| 2062 | + <!----> |
| 2063 | + |
2007 | 2064 | <dt id=RFC2119>[RFC2119] |
2008 | 2065 |
|
2009 | 2066 | <dd>S. Bradner. <a href="http://www.ietf.org/rfc/rfc2119.txt"><cite>Key |
|
0 commit comments