@@ -556,7 +556,7 @@ Autohiding Base-identical Annotations</h3>
556
556
557
557
When the computed value of 'ruby-merge' is ''collapse'' ,
558
558
the autohiding is disabled.
559
- When the computed value of 'ruby-merge' is ''auto'' ,
559
+ When the computed value of 'ruby-merge' is ''ruby-merge/ auto'' ,
560
560
the user agent may decide whether to autohide or not,
561
561
but it is recommended to autohide if the algorithm the user agent chose
562
562
produces the results similar to ''separate'' would produce.
@@ -1201,14 +1201,39 @@ Edge Effects</h2>
1201
1201
<h3 id="ruby-overhang">
1202
1202
Overhanging Ruby</h3>
1203
1203
1204
- When [=ruby annotation box=] is longer than its corresponding [=ruby base box=] ,
1205
- the [=ruby annotation box=] may partially overhang adjacent boxes.
1204
+ <pre class="propdef">
1205
+ Name : ruby-overhang
1206
+ Value : auto | none
1207
+ Initial : auto
1208
+ Applies to : ruby annotation containers
1209
+ Inherited : yes
1210
+ Computed value : specified keyword
1211
+ Animation type : by computed value type
1212
+ </pre>
1213
+
1214
+ The 'ruby-overhang' property controls whether [=ruby annotations=]
1215
+ may overlap adjacent text outside the [=ruby container=] .
1216
+ Values have the following meanings:
1217
+
1218
+ <dl dfn-type=value dfn-for=ruby-overhang>
1219
+ <dt> <dfn>auto</dfn>
1220
+ <dd>
1221
+ When a [=ruby annotation container=] is longer than
1222
+ its corresponding [=ruby base container=] ,
1223
+ the [=ruby annotation container=] may
1224
+ partially overlap adjacent boxes.
1206
1225
1207
- This level of the specification does not define
1208
- how much the overhang may be allowed, and under what conditions .
1226
+ Whether, how much, and under which conditions to overhang
1227
+ are determined by the UA .
1209
1228
1210
- If the ruby text is not allowed to overhang,
1211
- then the ruby behaves like a traditional inline box,
1229
+ <dt> <dfn>none</dfn>
1230
+ <dd>
1231
+ A [=ruby annotation container=] is never allowed
1232
+ to extend past the [=ruby annotation container=] .
1233
+ </dl>
1234
+
1235
+ When [=ruby annotations=] are not allowed to overhang,
1236
+ the ruby behaves like a traditional inline box,
1212
1237
i.e. only its own contents are rendered within its boundaries
1213
1238
and adjacent elements do not cross the box boundary:
1214
1239
@@ -1218,33 +1243,32 @@ Overhanging Ruby</h3>
1218
1243
<p class="caption"> Simple ruby whose text is not allowed to overhang adjacent text
1219
1244
</div>
1220
1245
1221
- However, if [=ruby annotation=] content is allowed to overhang adjacent elements
1246
+ However, if a [=ruby annotation container=] is allowed
1247
+ to overhang adjacent content
1222
1248
and it happens to be wider than its base,
1223
- then the adjacent content is partially rendered within the area of the [=ruby container box=] ,
1224
- while the [=ruby annotation=] may partially overlap the upper blank parts of the adjacent content:
1249
+ then adjacent inline-level content
1250
+ is partially rendered within the area of the [=ruby container box=] ,
1251
+ allowing the [=ruby annotation=] to partially overlap
1252
+ the upper/lower areas of such adjacent content:
1225
1253
1226
1254
<div class="figure">
1227
1255
<img src="images/ro-a.gif"
1228
1256
alt="Diagram showing the ruby boxes interacting with adjacent text">
1229
1257
<p class="caption"> Simple ruby whose text is allowed to overhang adjacent text
1230
1258
</div>
1231
1259
1232
- The [=ruby annotations=] related to a [=ruby base=]
1233
- must never overhang another [=ruby base=] .
1260
+ Note: Whether [=ruby annotations=] related to a [=ruby base=]
1261
+ can overhang another [=ruby base=] is controlled by 'ruby-merge' .
1234
1262
1235
1263
The alignment of the contents of the base or the ruby text
1236
1264
is not affected by overhanging behavior.
1237
- The alignment is achieved the same way regardless of the overhang behavior setting
1265
+ Alignment is achieved the same way regardless of the overhang behavior setting
1238
1266
and it is computed before the space available for overlap is determined.
1239
1267
It is controlled by the 'ruby-align' property.
1240
1268
1241
1269
Issue: I suspect overhanging interacts with alignment in some cases;
1242
1270
might need to look into this later.
1243
1271
1244
- This entire logic applies the same way in vertical ideographic layout,
1245
- only the dimension in which it works in such a layout is vertical,
1246
- instead of horizontal.
1247
-
1248
1272
<div class="example">
1249
1273
The user agent may use [[JIS4051]] recommendation of
1250
1274
using one ruby text character length as the maximum overhang length.
0 commit comments