-
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
Issue 0216 fontsize em on region #242
Conversation
spec/ttml2.xml
Outdated
<td>if not <loc href="#content-vocabulary-span"><el>region</el></loc> element, | ||
then relative to parent element's font size; otherwise, relative to the | ||
<td>if not <loc href="#document-structure-vocabulary-tt"><el>tt</el></loc> element, | ||
then relative to nearest styled ancestor element's computed font size; otherwise, relative to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If fontSize="100%" is specified on region alone, then
- in TTML1, fontSize on the region is computed to be "1c"
- in TTML2, fontSize on the region would be computed to 100% of nearest styled ancestor element's computed font size
What is a styled element?
On Thu, Feb 9, 2017 at 11:30 PM, Pierre-Anthony Lemieux < ***@***.***> wrote:
***@***.**** requested changes on this pull request.
------------------------------
In spec/ttml2.xml
<#242 (review)>:
> @@ -9613,8 +9612,8 @@ as a style property only to those element types indicated in the following table
</tr>
<tr>
<td><emph>Percentages:</emph></td>
-<td>if not <loc href="#content-vocabulary-span"><el>region</el></loc> element,
-then relative to parent element's font size; otherwise, relative to the
+<td>if not <loc href="#document-structure-vocabulary-tt"><el>tt</el></loc> element,
+then relative to nearest styled ancestor element's computed font size; otherwise, relative to the
If fontSize="100%" is specified on region alone, then
- in TTML1, fontSize on the region is computed to be "1c"
- in TTML2, fontSize on the region would be computed to 100% of *nearest
styled ancestor element's computed font size*
What is a *styled element*?
I needed a term that would apply to tt but not to layout or head, since
styles cannot be specified on them. In other words, region inherits from tt
in TTML2, and the initial value of fontSize is 1c on tt (absent being
overridden by initial).
I will add a glossary entry for *styled element* to this end.
… —
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#242 (review)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAXCb8x5b6TWhUyrA8Akw5bGSmtrwH_Uks5rbAQdgaJpZM4L81r3>
.
|
Since styles are computed after ISD construction, where regions can be made children of tt, thereby removing the need to create new terminology. |
On Fri, Feb 10, 2017 at 2:26 PM, Pierre-Anthony Lemieux < ***@***.***> wrote:
I needed a term that would apply to tt but not to layout or head, since
styles cannot be specified on them.
Since styles are computed after ISD construction, where regions can be
made children of tt, thereby removing the need to create new terminology.
Incorrect.
… —
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#242 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAXCb9qgoqSchTYYjoYS4Mkd8EqDwyCOks5rbNXygaJpZM4L81r3>
.
|
To elaborate on [1]:
ISD construction flattens styles as far as possible, including resolution of computed styles values. Only in some special circumstances, namely, those where the resolution of a computed style requires that layout occur or requires access to presentation time state, is it the case that styles are computed after ISD construction. [1] #242 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding definition of styled element.
#216