Skip to content

Commit

Permalink
Clarify that certain tts:font* properties apply to tt:p (#1215).
Browse files Browse the repository at this point in the history
  • Loading branch information
skynavga committed Jan 23, 2021
1 parent f8cc329 commit 4777cf6
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions spec/ttml2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10444,6 +10444,7 @@ by content flowed into a region.</p>
<tr>
<td><emph>Applies to:</emph></td>
<td>
<loc href="#content-vocabulary-p"><el>p</el></loc>,
<loc href="#content-vocabulary-span"><el>span</el></loc>; see also <loc href="#note-ruby-container-span-styles">Note</loc>
</td>
</tr>
Expand All @@ -10469,10 +10470,12 @@ by content flowed into a region.</p>
<p>The initial value, <code>default</code>, is a generic font family name, and is
further described in <specref ref="style-value-generic-family-name"/> below.</p>
</note>
<note role="clarification">
<p>In addition to applying to <loc href="#content-vocabulary-span"><el>span</el></loc>, the computed value of this property
on a <loc href="#content-vocabulary-p"><el>p</el></loc> element is used to resolve the <code>normal</code> value of the
on a <loc href="#content-vocabulary-p"><el>p</el></loc> element is used to resolve the value of the
style property associated with the <loc href="#style-attribute-lineHeight">tts:lineHeight</loc> attribute as specified in
<specref ref="style-attribute-lineHeight"/>.</p>
</note>
<p>If a computed value of the property associated with this attribute is not supported, then a
<loc href="#terms-presentation-processor">presentation processor</loc> must attempt to map the computed font family
to a supported font family that has similar typographic
Expand Down Expand Up @@ -10621,6 +10624,7 @@ presentation processing.</p>
<tr>
<td><emph>Applies to:</emph></td>
<td>
<loc href="#content-vocabulary-p"><el>p</el></loc>,
<loc href="#content-vocabulary-span"><el>span</el></loc>; see also <loc href="#note-ruby-container-span-styles">Note</loc>
</td>
</tr>
Expand Down Expand Up @@ -10651,10 +10655,12 @@ where the set of selection criteria are extended to include the following proper
<p>When selecting among font resources that satisfy the font selection criteria, font resources that are referenced
by a <loc href="#embedded-content-vocabulary-font"><el>font</el></loc> element have priority over application or system supplied
font resources.</p>
<note role="clarification">
<p>In addition to applying to <loc href="#content-vocabulary-span"><el>span</el></loc>, the computed value of this property
on a <loc href="#content-vocabulary-p"><el>p</el></loc> element is used to resolve the <code>normal</code> value of the
on a <loc href="#content-vocabulary-p"><el>p</el></loc> element is used to resolve the value of the
style property associated with the <loc href="#style-attribute-lineHeight">tts:lineHeight</loc> attribute as specified in
<specref ref="style-attribute-lineHeight"/>.</p>
</note>
<p>If a computed value of the property associated with this attribute is not supported,
then a <loc href="#terms-presentation-processor">presentation processor</loc> must use the value <code>auto</code>.</p>
<p>The <att>tts:fontSelectionStrategy</att> style is illustrated by the following
Expand Down Expand Up @@ -10812,6 +10818,7 @@ generated by content flowed into a region.</p>
<tr>
<td><emph>Applies to:</emph></td>
<td>
<loc href="#content-vocabulary-p"><el>p</el></loc>,
<loc href="#content-vocabulary-span"><el>span</el></loc>; see also <loc href="#note-ruby-container-span-styles">Note</loc>
</td>
</tr>
Expand Down Expand Up @@ -10894,10 +10901,12 @@ If the computed value of <code>tts:fontSize</code> on <code>P</code> is (18px,24
which resolves to (24px,24px). However, if <code>tts:fontSize="1em 1em"</code> is specified on <code>S</code>,
then this is equivalent to specifying <code>100% 100%</code> which resolves to (18px,24px).</p>
</note>
<note role="clarification">
<p>In addition to applying to <loc href="#content-vocabulary-span"><el>span</el></loc>, the computed value of this property
on a <loc href="#content-vocabulary-p"><el>p</el></loc> element is used to resolve the <code>normal</code> value of the
on a <loc href="#content-vocabulary-p"><el>p</el></loc> element is used to resolve the value of the
style property associated with the <loc href="#style-attribute-lineHeight">tts:lineHeight</loc> attribute as specified in
<specref ref="style-attribute-lineHeight"/>.</p>
</note>
<p>If a computed value of the property associated with this attribute is not supported,
then a <loc href="#terms-presentation-processor">presentation processor</loc> must use the closest supported value.</p>
<note role="elaboration">
Expand Down Expand Up @@ -10995,6 +11004,7 @@ by this specification.</p>
<tr>
<td><emph>Applies to:</emph></td>
<td>
<loc href="#content-vocabulary-p"><el>p</el></loc>,
<loc href="#content-vocabulary-span"><el>span</el></loc>; see also <loc href="#note-ruby-container-span-styles">Note</loc>
</td>
</tr>
Expand All @@ -11019,10 +11029,12 @@ by this specification.</p>
<p>Use of the value <code>oblique</code>
denotes a shear transformation (at an unspecified
angle) in the inline progression direction.</p>
<note role="clarification">
<p>In addition to applying to <loc href="#content-vocabulary-span"><el>span</el></loc>, the computed value of this property
on a <loc href="#content-vocabulary-p"><el>p</el></loc> element is used to resolve the <code>normal</code> value of the
on a <loc href="#content-vocabulary-p"><el>p</el></loc> element is used to resolve the value of the
style property associated with the <loc href="#style-attribute-lineHeight">tts:lineHeight</loc> attribute as specified in
<specref ref="style-attribute-lineHeight"/>.</p>
</note>
<p>If a computed value of the property associated with this attribute is not supported,
then a <loc href="#terms-presentation-processor">presentation processor</loc> must use the value <code>normal</code>.</p>
<p>The <att>tts:fontStyle</att> style is illustrated by the following example.</p>
Expand Down Expand Up @@ -11082,6 +11094,7 @@ of typographic glyph variants for <loc href="#terms-glyph-area">glyph areas</loc
<tr>
<td><emph>Applies to:</emph></td>
<td>
<loc href="#content-vocabulary-p"><el>p</el></loc>,
<loc href="#content-vocabulary-span"><el>span</el></loc>; see also <loc href="#note-ruby-container-span-styles">Note</loc>
</td>
</tr>
Expand All @@ -11103,10 +11116,12 @@ of typographic glyph variants for <loc href="#terms-glyph-area">glyph areas</loc
</tr>
</tbody>
</table>
<note role="clarification">
<p>In addition to applying to <loc href="#content-vocabulary-span"><el>span</el></loc>, the computed value of this property
on a <loc href="#content-vocabulary-p"><el>p</el></loc> element is used to resolve the <code>normal</code> value of the
on a <loc href="#content-vocabulary-p"><el>p</el></loc> element is used to resolve the value of the
style property associated with the <loc href="#style-attribute-lineHeight">tts:lineHeight</loc> attribute as specified in
<specref ref="style-attribute-lineHeight"/>.</p>
</note>
<p>If a computed value of the property associated with this attribute is not supported,
then a <loc href="#terms-presentation-processor">presentation processor</loc> must use the value <code>normal</code>.</p>
<p>The <att>tts:fontVariant</att> style is illustrated by the following example.</p>
Expand Down Expand Up @@ -11169,6 +11184,7 @@ by this specification.</p>
<tr>
<td><emph>Applies to:</emph></td>
<td>
<loc href="#content-vocabulary-p"><el>p</el></loc>,
<loc href="#content-vocabulary-span"><el>span</el></loc>; see also <loc href="#note-ruby-container-span-styles">Note</loc>
</td>
</tr>
Expand All @@ -11190,10 +11206,12 @@ by this specification.</p>
</tr>
</tbody>
</table>
<note role="clarification">
<p>In addition to applying to <loc href="#content-vocabulary-span"><el>span</el></loc>, the computed value of this property
on a <loc href="#content-vocabulary-p"><el>p</el></loc> element is used to resolve the <code>normal</code> value of the
on a <loc href="#content-vocabulary-p"><el>p</el></loc> element is used to resolve the value of the
style property associated with the <loc href="#style-attribute-lineHeight">tts:lineHeight</loc> attribute as specified in
<specref ref="style-attribute-lineHeight"/>.</p>
</note>
<p>If a computed value of the property associated with this attribute is not supported,
then a <loc href="#terms-presentation-processor">presentation processor</loc> must use the value <code>normal</code>.</p>
<p>The <att>tts:fontWeight</att> style is illustrated by the following example.</p>
Expand Down

0 comments on commit 4777cf6

Please sign in to comment.