Open Bug 1135417 Opened 5 years ago Updated Last year

Anonymous ruby base box doesn't cause line breaking with its previous ruby base box

Categories

(Core :: Layout: Ruby, defect)

x86_64
Windows 8.1
defect
Not set

Tracking

()

People

(Reporter: masayuki, Unassigned)

References

(Blocks 1 open bug, )

Details

See this testcase: http://jsfiddle.net/d_toybox/vdqk93mr/1/

anonymous ruby base box doesn't cause line breaking between it and its previous ruby base box.
This testcase is a little bit interesting. It seems the behavior meets our line-breaking impl for normal inline boxes.

According to the spec, the following code
<ruby>
  a
  <rb>b</rb>
</ruby>
have (roughly) the same effect as
<ruby><rb>
  a
  </rb><rb>b</rb></ruby>

The line breaking behavior should behave like
<span>
  a
  </span><span>b</span>
with "span { white-space: nowrap; }".
And in our current impl, there is no wrap opportunity between the two span either.

But the interesting thing is
<ruby>
  <rb>a</rb>
  <rb>b</rb>
</ruby>
should behave like
<span>a</span><span>
  </span><span>b</span>
but it doesn't. This may worth further investigation. I don't think it is important, though.
Component: Layout: Block and Inline → Layout: Ruby
You need to log in before you can comment on or make changes to this bug.