Skip to content

Commit c61408b

Browse files
committed
[css-ruby] Tie inter-character and interlinear layout together
1 parent afae87b commit c61408b

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

css-ruby-1/Overview.bs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -676,38 +676,41 @@ White Space Collapsing</h3>
676676
Ruby Layout</h2>
677677

678678
When a ruby structure is laid out,
679-
its [=base level=] is laid out on the line
679+
its [=base level=] is first laid out on the line
680680
exactly as if its [=ruby bases=] were a regular sequence of [=inline boxes=]
681681
and the [=ruby container=] a regular [=inline box=] wrapped around it.
682+
If a [=ruby container=] has any [=inter-character annotations=],
683+
they are laid out into the [=base level=] as detailed in [[#inter-character-layout]].
682684

683685
Each [=base container=] is then sized and positioned
684-
to contain exactly all of its [=ruby bases=]’ margin boxes
686+
to contain exactly all of its [=ruby bases=]’ margin boxes--
687+
and all their associated [=inter-character=] [=ruby annotation=] margin boxes, if any--
685688
as well as the margin boxes of [=ruby bases=] and [=ruby annotations=]
686689
of any descendant [=ruby containers=]
687690
also participating in this [=inline formatting context=].
688691
(If a [=base container=] has no [=in-flow=] content,
689692
it is sized and positioned
690693
as if it contained a single empty [=ruby base=].)
691694

692-
[=Ruby annotations=] within a level
695+
[=Inter-linear=] [=ruby annotations=] within a level
693696
are aligned to each other in the block axis
694697
as if they were [=inline boxes=]
695698
participating in the same [=inline formatting context=],
696699
effectively establishing a [=line box=]
697700
for that [=level=] of annotation in the [=ruby container=].
698-
In the inline axis, [=ruby annotations=] are aligned
701+
In the inline axis, these [=ruby annotations=] are aligned
699702
with respect to their [=ruby base boxes=]
700703
in accordance with their [=annotation container=]’s 'ruby-merge' value.
701704

702-
Each [=annotation container=] is then sized and positioned
705+
Each [=interlinear=] [=annotation container=] is then sized and positioned
703706
to contain exactly all of its [=ruby annotations=]’ margin boxes
704707
as well as the margin boxes of [=ruby bases=] and [=ruby annotations=]
705708
of any descendant [=ruby containers=]
706709
also participating in this [=annotation level=]’s [=inline formatting context=].
707710
(If an [=annotation container=] has no [=in-flow=] content,
708711
it is sized and positioned
709712
as if it contained a single empty [=ruby annotation=].)
710-
[=Annotation containers=] are then stacked outward
713+
These [=annotation containers=] are then stacked outward
711714
over or under (depending on 'ruby-position') their corresponding [=base container=],
712715
without any intervening space,
713716
thus determining the block-axis positioning of the [=ruby annotations=]
@@ -1041,7 +1044,7 @@ Ruby Positioning: the 'ruby-position' property</h3>
10411044
If the [=writing mode=] of the enclosing [=ruby container=] is [=vertical writing mode|vertical=],
10421045
this value has the same effect as ''over''.
10431046

1044-
Otherwise, the ruby text becomes a <dfn dfn>inter-character annotation</dfn>.
1047+
Otherwise, the ruby text becomes an <dfn dfn local-lt=inter-character>inter-character annotation</dfn>.
10451048
The ruby text appears on the right of the base in horizontal text.
10461049
This forces the computed value of 'writing-mode' of the [=ruby annotation container=] to be ''vertical-rl''.
10471050

0 commit comments

Comments
 (0)