Skip to content

Commit 6347f58

Browse files
committed
[css-ruby] Clarify white space collapsing
1 parent 906c8cf commit 6347f58

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

css-ruby-1/Overview.bs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -645,12 +645,20 @@ White Space Collapsing</h3>
645645
</div>
646646

647647
Where undiscarded white space is [=collapsible white space|collapsible=],
648-
it will collapse across consecutive elements
648+
it will collapse across adjacent boxes in each line box
649649
following the standard <a href="https://www.w3.org/TR/css3-text/#white-space-rules">white space processing rules</a> [[!CSS-TEXT-3]].
650-
For [=collapsible white space=] between [=ruby segments=] ([=inter-segment white space=]), however,
650+
Annotations in separate [=ruby segments=]
651+
or separated by [=auto-hidden annotations=]
652+
are not considered adjacent;
653+
however all base-level content
654+
(including [=inter-character annotation boxes=],
655+
which are treated as [=atomic inlines=])
656+
is.
657+
For [=collapsible white space=] between [=ruby segments=] ([=inter-segment white space=]),
651658
the contextual text for determining [[css-text-3#line-break-transform|segment break transformations]]
652-
is given by the [=ruby bases=] on either side,
653-
not the text on either side of the white space in source document order.
659+
is thus given by the [=ruby bases=] on either side,
660+
not necessarily the text on either side of the white space in source document order
661+
(which could include [=interlinear annotations=]).
654662

655663
<div class="note">
656664
Note: The white space processing rules

0 commit comments

Comments
 (0)