Skip to content

Commit 534469d

Browse files
committed
[css-ruby-1] Disallow collisions due to ruby overhang.
1 parent 5c5a42e commit 534469d

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

css-ruby-1/Overview.bs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,7 @@ Overhanging Ruby: the 'ruby-overhang' property</h3>
14871487
</dl>
14881488

14891489
When [=ruby annotations=] are not allowed to overhang,
1490-
the ruby behaves like a traditional inline box,
1490+
the [=ruby container=] behaves like a traditional inline box,
14911491
i.e. only its own contents are rendered within its boundaries
14921492
and adjacent elements do not cross the box boundary:
14931493

@@ -1497,13 +1497,15 @@ Overhanging Ruby: the 'ruby-overhang' property</h3>
14971497
<p class="caption">Simple ruby whose text is not allowed to overhang adjacent text
14981498
</div>
14991499

1500-
However, if a [=ruby annotation container=] is allowed
1501-
to overhang adjacent content
1502-
and it happens to be wider than its base,
1503-
then adjacent inline-level content
1504-
is partially rendered within the area of the [=ruby container box=],
1505-
allowing the [=ruby annotation=] to partially overlap
1506-
the upper/lower areas of such adjacent content:
1500+
However, if a [=ruby annotation container=] is allowed to overhang,
1501+
neighbouring content may overlap the [=ruby container box=],
1502+
allowing its [=ruby annotation=](s) to partially render over/under
1503+
surrounding inline-level content.
1504+
Overhang is only allowed to the extent
1505+
that it does not cause collisions between
1506+
the neighboring content
1507+
and the ruby container’s [=annotation boxes=]
1508+
or its overlapped [=base=]’s contents.
15071509

15081510
<div class="figure">
15091511
<img src="images/ro-a.gif"

0 commit comments

Comments
 (0)