Skip to content
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 "the first font obtained" in tts:lineHeight normal algorithm. #1241

Open
1 task
skynavga opened this issue Aug 5, 2021 · 3 comments · May be fixed by #1242
Open
1 task

Clarify "the first font obtained" in tts:lineHeight normal algorithm. #1241

skynavga opened this issue Aug 5, 2021 · 3 comments · May be fixed by #1242
Assignees
Milestone

Comments

@skynavga
Copy link
Collaborator

skynavga commented Aug 5, 2021

Clarify the following ambiguity regarding the tts:lineHeight="normal" algorithm in §10.2.27:

  • no contextual context is specified by which means tts:fontSelectionStrategy could function as a mapping constraint

If possible, the resolution of this ambiguity should favor the CSS Fonts Module definition of first available font, in which case the use of tts:fontSelectionStrategy as a mapping constrain becomes moot.

Note that this ambiguity is present regardless of whether tts:lineHeight is applied to p or span.

@nigelmegitt
Copy link
Contributor

nigelmegitt commented Aug 5, 2021

Note that this ambiguity is present regardless of whether tts:lineHeight is applied to p or span.

Presumably this is just an aside, not relevant to the issue, but just wanted to note that tts:lineHeight only applies to p.

@skynavga
Copy link
Collaborator Author

skynavga commented Aug 5, 2021

@nigelmegitt see the following spec text in §10.2.27:

Note:

In addition to explicitly applying to p elements, the value of this style property inherited by span element and anonymous span descendants of a p element is used to compute the half leading of their generated inline areas, about which see [XSL-FO 1.1], §4.5, and [CSS2], §10.8.1.

admittedly, this does not use the phrase applies to, but that's cutting it rather thin, as uses to compute is pretty close; note that in both CSS and XSL line-height is said to apply to our equivalent of both p and span for the reason we give in this Note;

@nigelmegitt
Copy link
Contributor

(apologies for the delay)

Ah, I see what you mean @skynavga, you're referring to the used value of tts:lineHeight that is needed when laying out inline areas, thanks, that makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants