You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-ruby] effect of line-height on nested ruby containers #4986
What is the effect of line-height on a nested ruby container. As far as the effect on its insides, there should be no difference compared to a non-nested ruby container, and that should do nothing (assuming we resolve that way in 4979). What about its effects towards the outside. I can see two possibilities:
There is no effect
it does nothing to the outer ruby, but it does affect the line that it is in, in the same way any (possibly nested) inline box would.
There are two cases of nested ruby container: it can be nested within the ruby base, or in ruby annotation. I suppose you are talking about the former.
My understanding is that for ruby container inside another ruby base, such ruby container behaves just like a normal inline element that contributes its line height to the line. When it's nested inside ruby annotation, on the other hand, line height would have no effect, because ruby annotation container doesn't care about line height.
The CSS Working Group just discussed effect of line-height on nestd ruby containers, and agreed to the following:
RESOLVED: nested ruby containers behave as inline boxes for the purpose of line-height
The full IRC log of that discussion
<astearns> topic: effect of line-height on nestd ruby containers
<astearns> github: https://github.com//issues/4986
<emilio> florian: if we'd have resolved that line-height does something on the inner boxes then this would be more interesting
<emilio> florian: but given we resolved it doesn't we should probably say that this behaves like setting line-height on nested inline boxes
<emilio> astearns: xidorn, you mentioned that there's two different kinds of nesting?
<emilio> florian: a ruby container nested in a ruby base should affect the line it's in, but one nested inside an annotation it should do nothing
<emilio> fantasai: hmm, not sure about nothing
<emilio> fantasai: should probably be whatever inlines do in that case
<emilio> florian: we can agree on it being not magic
<emilio> RESOLVED: nested ruby containers behave as inline boxes for the purpose of line-height
Activity
upsuper commentedon Apr 29, 2020
There are two cases of nested ruby container: it can be nested within the ruby base, or in ruby annotation. I suppose you are talking about the former.
My understanding is that for ruby container inside another ruby base, such ruby container behaves just like a normal inline element that contributes its line height to the line. When it's nested inside ruby annotation, on the other hand, line height would have no effect, because ruby annotation container doesn't care about line height.
css-meeting-bot commentedon May 6, 2020
The CSS Working Group just discussed
effect of line-height on nestd ruby containers, and agreed to the following:RESOLVED: nested ruby containers behave as inline boxes for the purpose of line-heightThe full IRC log of that discussion
<astearns> topic: effect of line-height on nestd ruby containers<astearns> github: https://github.com//issues/4986
<emilio> florian: if we'd have resolved that line-height does something on the inner boxes then this would be more interesting
<emilio> florian: but given we resolved it doesn't we should probably say that this behaves like setting line-height on nested inline boxes
<emilio> astearns: xidorn, you mentioned that there's two different kinds of nesting?
<emilio> florian: a ruby container nested in a ruby base should affect the line it's in, but one nested inside an annotation it should do nothing
<emilio> fantasai: hmm, not sure about nothing
<emilio> fantasai: should probably be whatever inlines do in that case
<emilio> florian: we can agree on it being not magic
<emilio> RESOLVED: nested ruby containers behave as inline boxes for the purpose of line-height
[css-ruby-1] Tighten up ruby layout section. #4986 #4980 #4979 #4976 #…