Skip to content

[css-ruby] effect of line-height on nested ruby containers #4986

Closed

Description

@frivoal

A follow up question to #4979:

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.

Activity

  1. upsuper commented on Apr 29, 2020

    @upsuper
    Member

    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.

  2. css-meeting-bot commented on May 6, 2020

    @css-meeting-bot
    Member

    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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions