Skip to content

Commit 65b32cb

Browse files
committed
[css-ruby] Define blockification of internal ruby boxes.
1 parent a0e956a commit 65b32cb

File tree

2 files changed

+53
-14
lines changed

2 files changed

+53
-14
lines changed

css-ruby/Overview.html

+34-7
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</p>
5555
<h1 class="p-name no-ref" id=title>CSS Ruby Layout Module Level 1</h1>
5656
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
57-
<span class=dt-updated><span class=value-title title=20140712>12 July 2014</span></span></span></h2>
57+
<span class=dt-updated><span class=value-title title=20140718>18 July 2014</span></span></span></h2>
5858
<div data-fill-with=spec-metadata><dl>
5959
<dt>This version:
6060
<dd><a class=u-url href=http://dev.w3.org/csswg/css-ruby-1/>http://dev.w3.org/csswg/css-ruby-1/</a>
@@ -130,7 +130,8 @@ <h2 class="no-num no-toc no-ref heading settled heading" id=contents><span class
130130
<ul class=toc>
131131
<li><a href=#ruby-display><span class=secno>2.1</span> Ruby-specific <span class=property data-link-type=propdesc title=display>display</span> Values</a>
132132
<ul class=toc>
133-
<li><a href=#display-inside-outside><span class=secno>2.1.1</span> Ruby-specific <span class=property data-link-type=propdesc title=display-inside>display-inside</span> and <span class=property data-link-type=propdesc title=display-outside>display-outside</span> values</a></ul>
133+
<li><a href=#display-inside-outside><span class=secno>2.1.1</span> Ruby-specific <span class=property data-link-type=propdesc title=display-inside>display-inside</span> and <span class=property data-link-type=propdesc title=display-outside>display-outside</span> values</a>
134+
<li><a href=#block-ruby><span class=secno>2.1.2</span> Non-Inline Ruby</a></ul>
134135
<li><a href=#box-fixup><span class=secno>2.2</span> Anonymous Ruby Box Generation</a>
135136
<li><a href=#ruby-pairing><span class=secno>2.3</span> Annotation Pairing</a>
136137
<ul class=toc>
@@ -369,7 +370,7 @@ <h3 class="heading settled heading" data-level=2.1 id=ruby-display><span class=s
369370
like inline boxes, they break across lines and
370371
their base-level contents participate in the same inline formatting context as the <a data-link-type=dfn href=#ruby-container title="ruby container">ruby container</a> itself.
371372
<a data-link-type=dfn href=#ruby-base-box title="ruby bases">Ruby bases</a>, <a data-link-type=dfn href=#ruby-annotation-box title="ruby annotations">ruby annotations</a>, <a data-link-type=dfn href=#ruby-base-container-box title="ruby base containers">ruby base containers</a>, and <a data-link-type=dfn href=#ruby-annotation-container-box title="ruby annotation containers">ruby annotation containers</a>
372-
are <dfn data-dfn-type=dfn data-noexport="" id=internal-ruby-boxes>internal ruby boxes<a class=self-link href=#internal-ruby-boxes></a></dfn>:
373+
are <dfn data-dfn-type=dfn data-noexport="" id=internal-ruby-boxes title="internal ruby boxes|internal ruby display types">internal ruby boxes<a class=self-link href=#internal-ruby-boxes></a></dfn>:
373374
like <i data-link-type=dfn title="internal table elements">internal table elements</i>,
374375
they have specific roles in ruby layout.
375376
<span class=issue id=issue-ca88244c><a class=self-link href=#issue-ca88244c></a>Are internal ruby boxes inline-level?</span>
@@ -407,7 +408,13 @@ <h4 class="heading settled heading" data-level=2.1.1 id=display-inside-outside><
407408
<td><span class=css data-link-type=maybe title=auto>auto</span>
408409
</table>
409410

410-
<p id=block-ruby>If an element has a computed <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-display-3/#propdef-display-inside title=display-inside>display-inside</a> of <a class=css data-link-type=maybe href=#ruby title=ruby>ruby</a>
411+
<p>See the <a href=http://www.w3.org/TR/css-display/>CSS Display Module</a>
412+
for more information on <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-display-3/#propdef-display-inside title=display-inside>display-inside</a> and <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-display-3/#propdef-display-outside title=display-outside>display-outside</a>. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-display title=biblio-css3-display>[CSS3-DISPLAY]</a>
413+
414+
<h4 class="heading settled heading" data-level=2.1.2 id=block-ruby><span class=secno>2.1.2 </span><span class=content>
415+
Non-Inline Ruby</span><a class=self-link href=#block-ruby></a></h4>
416+
417+
<p>If an element has a computed <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-display-3/#propdef-display-inside title=display-inside>display-inside</a> of <a class=css data-link-type=maybe href=#ruby title=ruby>ruby</a>
411418
and a computed <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-display-3/#propdef-display-outside title=display-outside>display-outside</a> other than <span class=css data-link-type=maybe title=inline-level>inline-level</span>,
412419
then it generates two boxes:
413420
a principal block container box of the required <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-display-3/#propdef-display-outside title=display-outside>display-outside</a> type,
@@ -417,9 +424,18 @@ <h4 class="heading settled heading" data-level=2.1.1 id=display-inside-outside><
417424
This allows styling the element as a block,
418425
while correctly maintaining the internal ruby structure.
419426

427+
<p class=issue id=issue-b4dd0f5f><a class=self-link href=#issue-b4dd0f5f></a>
428+
Note: There is no dedicated block-level <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> shorthand keyword
429+
because ruby is fundamentally an inline layout feature.
430+
<span class=issue id=issue-feac3754><a class=self-link href=#issue-feac3754></a>We might need one to handle <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> blockification, though. :(</span>
420431

421-
<p>See the <a href=http://www.w3.org/TR/css-display/>CSS Display Module</a>
422-
for more information on <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-display-3/#propdef-display-inside title=display-inside>display-inside</a> and <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-display-3/#propdef-display-outside title=display-outside>display-outside</a>. <a data-biblio-type=normative data-link-type=biblio href=#biblio-css3-display title=biblio-css3-display>[CSS3-DISPLAY]</a>
432+
<p>Absolute positioning or floating an element causes its <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> value
433+
to compute to a block-level equivalent. (See <a data-biblio-type=normative data-link-type=biblio href=#biblio-css21 title=biblio-css21>[CSS21]</a> section 9.7.)
434+
This is equivalent to setting its <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-display-3/#propdef-display-outside title=display-outside>display-outside</a> to <span class=css data-link-type=maybe title=block-level>block-level</span>.
435+
<span class=issue id=issue-de71092e><a class=self-link href=#issue-de71092e></a>This should go into the Display module.</span>
436+
For the <a data-link-type=dfn href=#internal-ruby-boxes title="internal ruby display types">internal ruby display types</a>,
437+
this causes their <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> value to compute to <span class=css data-link-type=maybe title=block>block</span>.
438+
<span class=issue id=issue-93d00b01><a class=self-link href=#issue-93d00b01></a>Once that’s done, this can become a note.</span>
423439

424440
<h3 class="heading settled heading" data-level=2.2 id=box-fixup><span class=secno>2.2 </span><span class=content>
425441
Anonymous Ruby Box Generation</span><a class=self-link href=#box-fixup></a></h3>
@@ -1682,6 +1698,7 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
16821698
<li>inter-character, <a href=#valdef-ruby-position.inter-character title="section 4.1">4.1</a>
16831699
<li>inter-level white space, <a href=#inter-level-white-space title="section 2.2">2.2</a>
16841700
<li>internal ruby boxes, <a href=#internal-ruby-boxes title="section 2.1">2.1</a>
1701+
<li>internal ruby display types, <a href=#internal-ruby-boxes title="section 2.1">2.1</a>
16851702
<li>inter-segment white space, <a href=#inter-segment-white-space title="section 2.2">2.2</a>
16861703
<li>intra-level white space, <a href=#intra-level-white-space title="section 2.2">2.2</a>
16871704
<li>intra-ruby white space, <a href=#intra-ruby-white-space title="section 2.2">2.2</a>
@@ -1749,7 +1766,17 @@ <h2 class="no-num heading settled" id=issues-index><span class=content>Issues In
17491766

17501767
<div class=issue>Are internal ruby boxes inline-level?<a href=#issue-ca88244c></a></div>
17511768

1752-
<div class=issue>The goal of this is to simplify the layout model by suppressing any line breaks within ruby annotations.
1769+
<div class=issue>
1770+
Note: There is no dedicated block-level <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> shorthand keyword
1771+
because ruby is fundamentally an inline layout feature.
1772+
<span class=issue>We might need one to handle <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> blockification, though. :(</span>
1773+
1774+
<a href=#issue-b4dd0f5f></a></div><div class=issue>We might need one to handle <a class=property data-link-type=propdesc href=#propdef-display title=display>display</a> blockification, though. :(<a href=#issue-feac3754></a></div>
1775+
1776+
<div class=issue>This should go into the Display module.<a href=#issue-de71092e></a></div>
1777+
For the <div class=issue>Once that’s done, this can become a note.<a href=#issue-93d00b01></a></div>
1778+
1779+
<div class=issue>The goal of this is to simplify the layout model by suppressing any line breaks within ruby annotations.
17531780
Alternatively we could try to define some kind of acceptable behavior for them.
17541781

17551782
<a href=#issue-8af70305></a></div><div class=issue>Make this into an example:

css-ruby/Overview.src.html

+19-7
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ <h3 id="ruby-display">
212212
like inline boxes, they break across lines and
213213
their base-level contents participate in the same inline formatting context as the <i>ruby container</i> itself.
214214
<i>Ruby bases</i>, <i>ruby annotations</i>, <i>ruby base containers</i>, and <i>ruby annotation containers</i>
215-
are <dfn>internal ruby boxes</dfn>:
215+
are <dfn title="internal ruby boxes|internal ruby display types">internal ruby boxes</dfn>:
216216
like <i>internal table elements</i>,
217217
they have specific roles in ruby layout.
218218
<span class="issue">Are internal ruby boxes inline-level?</span>
@@ -250,7 +250,13 @@ <h4 id="display-inside-outside">
250250
<td>''auto''
251251
</table>
252252

253-
<p id="block-ruby">If an element has a computed 'display-inside' of ''ruby''
253+
<p>See the <a href="http://www.w3.org/TR/css-display/">CSS Display Module</a>
254+
for more information on 'display-inside' and 'display-outside'. [[!CSS3-DISPLAY]]
255+
256+
<h4 id="block-ruby">
257+
Non-Inline Ruby</h4>
258+
259+
<p>If an element has a computed 'display-inside' of ''ruby''
254260
and a computed 'display-outside' other than ''inline-level'',
255261
then it generates two boxes:
256262
a principal block container box of the required 'display-outside' type,
@@ -259,13 +265,19 @@ <h4 id="display-inside-outside">
259265
(and if inheritable, inherit to the <i>ruby container box</i>).
260266
This allows styling the element as a block,
261267
while correctly maintaining the internal ruby structure.
262-
<!--
268+
269+
<p class="issue">
263270
Note: There is no dedicated block-level 'display' shorthand keyword
264271
because ruby is fundamentally an inline layout feature.
265-
-->
266-
267-
<p>See the <a href="http://www.w3.org/TR/css-display/">CSS Display Module</a>
268-
for more information on 'display-inside' and 'display-outside'. [[!CSS3-DISPLAY]]
272+
<span class="issue">We might need one to handle 'display' blockification, though. :(</span>
273+
274+
<p>Absolute positioning or floating an element causes its 'display' value
275+
to compute to a block-level equivalent. (See [[!CSS21]] section 9.7.)
276+
This is equivalent to setting its 'display-outside' to ''block-level''.
277+
<span class="issue">This should go into the Display module.</span>
278+
For the <i>internal ruby display types</i>,
279+
this causes their 'display' value to compute to ''block''.
280+
<span class="issue">Once that's done, this can become a note.</span>
269281

270282
<h3 id="box-fixup">
271283
Anonymous Ruby Box Generation</h3>

0 commit comments

Comments
 (0)