-
Notifications
You must be signed in to change notification settings - Fork 12
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 semantics of tts:fontSize="2em". #214
Comments
It is unclear to me from reading the different issues, if this issue will be fixed in a compatible way compared to TTML2? w3c/ttml2#216 seems to indicate that:
Is this different treatment purely editorial? If not, is it compatible treatment? |
@cconcolato that's a good point - going through it with a worked example: <tt ttp:cellResolution="32 15">
<head>
<layout>
<region xml:id="r1" tts:fontSize="100% 100%"/>
</layout>
</head>
...
</tt> The question is: what is the computed font size inherited by content selected into the region? Processing as per TTML1:
Processing as per TTML2:
Therefore this document has a different apparent font size depending on whether the TTML1 or TTML2 processing semantic is used. Unless my analysis is wrong, this is a problem. |
I agree with your analysis, but I suspect that the intention is that the behavior when processed by a TTML2 processor should be the same as for a TTML1 processor if the
As indicated in my response to the email, I think the behavior should not be triggered based on version but based on feature. We should have a #inherit-root-tt to select TTML2 behavior. |
@nigelmegitt your analysis is wrong; I will provide details over the weekend |
@skynavga ok, looking forward to seeing that. |
I'd support a feature designator for root inheritance @cconcolato |
Clarify tts:fontSize specified using two percentage values (#215)
@skynavga in #214 (comment) you said you'd provide details over the weekend. Is anything preventing you from doing so? |
XSL, which TTML uses as a reference for 'em', states that "a relative length is a unit-based value that is measured against the current value of the font-size property" and "when the "font-size" property is
evaluated, the current font-size for use in evaluation is the font-size of the parent element"
While TTML does not specify a definition for the current value of tts:fontSize, using the computed value of tts:fontSize of the parent would be consistent with XSL and the definition of the percentage metric in TTML.
See also #206
The text was updated successfully, but these errors were encountered: