Skip to content

[css-ruby-1] Size/position of annotation container for inter-character ruby #5994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
fantasai opened this issue Feb 15, 2021 · 4 comments
Open
Labels
css-ruby-1 Current Work

Comments

@fantasai
Copy link
Collaborator

@upsuper wrote in https://lists.w3.org/Archives/Public/www-style/2015Mar/0118.html :

The current spec says:

When ruby-position indicates inter-character annotations, ... The affected ruby annotation container is similarly sized so that its content box coincides with that of the ruby base container.

This will cause a very undesired problem that the text container will block any pointer event to reach the base texts, because it is always covered over the base container.

Hence I propose that, the content box of inter-character text container should be empty.

@fantasai fantasai added the css-ruby-1 Current Work label Feb 15, 2021
@fantasai
Copy link
Collaborator Author

fantasai commented Feb 15, 2021

@upsuper Totally fine with making the change you request, it makes sense. But there's several ways to interpret it:

  • size and position it like a zero-height interlinear over annotation container
  • size and position it like a zero-width inter-character annotation (after the last base)
  • size it zero-zero and position it ... somewhere?

Which option do you think makes the most sense? (I'm personally leaning towards 2, since it at least relates to how the annotations are positioning somewhat, but it doesn't particularly matter.)

@upsuper
Copy link
Member

upsuper commented Feb 15, 2021

I would prefer 1 (and I suppose you mean over base container not annotation container), as even for inter-character I think rb-rb-rt-rt style is still possible, and thus it would be good to still have the annotation container span across its bases somehow. Putting it at the end of the last base makes its behavior further diverge from others, which could become another nuisance impls need to handle for no good reason.

As implementation may position ruby annotation relative to the container, it might be good to make it always immediately over the base container, rather than stack with other annotation levels.

@fantasai
Copy link
Collaborator Author

@upsuper OK. Detail: So normally an annotation container won't span the last inter-character annotation, since interlinear annotations center over the base ignoring its inter-character annotation(s). Should it be the same here, or should these span all their bases and their annotations?

@upsuper
Copy link
Member

upsuper commented Feb 21, 2021

I will try to implement inter-character and see how it goes then feedback here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-ruby-1 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants