-
Notifications
You must be signed in to change notification settings - Fork 16
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
Clarify no preceding sibling case on ruby text content. #787
Comments
If there is no preceding sibling, then the constraint doesn't apply. There is no such thing as a null preceding sibling. |
In my opinion the wording "of its preceding sibling" implies that such a sibling is actually present.
Such wording is currently part of the TTML2 spec; see the second constraint that applies to "if the computed value of tts:ruby is base, then its preceding sibling is either null (i.e., no preceding sibling) or the computed value of tts:ruby of its preceding sibling is" So this inconsistency has to be fixed somehow. |
The ruby nesting constraints contain the following constraint:
"If the computed value of tts:ruby is text, then the computed value of tts:ruby of its preceding sibling is base, text, or delimiter"
This however will not work when complex ruby is used, as the first child of a ruby text container is ruby text content, but has no preceding sibling. See e.g. "Example Fragment – Double-sided Ruby",
So in line with the respective constraint related to ruby base content, the mentioned constraint should be changed to:
"If the computed value of tts:ruby is base, then its preceding sibling is either null (i.e., no preceding sibling) or the computed value of tts:ruby of its preceding sibling is base, text, or delimiter."
The text was updated successfully, but these errors were encountered: