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

Issue 0150 inline background height #346

Merged
merged 8 commits into from
Jun 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions spec/profiles/ttml2-full.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<feature value="required">#extent</feature>
<feature value="required">#extent-region</feature>
<feature value="required">#extent-root</feature>
<feature value="required">#fillLineGap</feature>
<feature value="required">#font</feature>
<feature value="required">#fontFamily</feature>
<feature value="required">#fontFamily-generic</feature>
Expand Down
1 change: 1 addition & 0 deletions spec/profiles/ttml2-presentation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
<feature value="optional">#extent</feature>
<feature value="optional">#extent-region</feature>
<feature value="optional">#extent-root</feature>
<feature value="optional">#fillLineGap</feature>
<feature value="optional">#font</feature>
<feature value="optional">#fontFamily</feature>
<feature value="optional">#fontFamily-generic</feature>
Expand Down
1 change: 1 addition & 0 deletions spec/profiles/ttml2-transformation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
<feature value="optional">#extent</feature>
<feature value="optional">#extent-region</feature>
<feature value="optional">#extent-root</feature>
<feature value="optional">#fillLineGap</feature>
<feature value="optional">#font</feature>
<feature value="optional">#fontFamily</feature>
<feature value="optional">#fontFamily-generic</feature>
Expand Down
3 changes: 3 additions & 0 deletions spec/rnc/ttml2-datatypes.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ TTAF.Fill.datatype =
"freeze" |
"remove"

TTAF.FillLineGap.datatype =
TTAF.Boolean.datatype

TTAF.FontFamily.datatype =
string

Expand Down
3 changes: 3 additions & 0 deletions spec/rnc/ttml2-styling-attribs.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ TTAF.displayAlign.attrib
= attribute tts:displayAlign { TTAF.DisplayAlign.datatype }?
TTAF.extent.attrib
= attribute tts:extent { TTAF.Extent.datatype }?
TTAF.fillLineGap.attrib
= attribute tts:fillLineGap { TTAF.FillLineGap.datatype }?
TTAF.fontFamily.attrib
= attribute tts:fontFamily { TTAF.FontFamily.datatype }?
TTAF.fontKerning.attrib
Expand Down Expand Up @@ -130,6 +132,7 @@ TTAF.Styling.attrib.class &=
TTAF.display.attrib,
TTAF.displayAlign.attrib,
TTAF.extent.attrib,
TTAF.fillLineGap.attrib,
TTAF.fontFamily.attrib,
TTAF.fontKerning.attrib,
TTAF.fontShear.attrib,
Expand Down
97 changes: 97 additions & 0 deletions spec/ttml2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3256,6 +3256,7 @@ Styling Attributes
<loc href="#style-attribute-display">tts:display</loc>,
<loc href="#style-attribute-displayAlign">tts:displayAlign</loc>,
<loc href="#style-attribute-extent">tts:extent</loc>,
<loc href="#style-attribute-fillLineGap">tts:fillLineGap</loc>,
<loc href="#style-attribute-fontFamily">tts:fontFamily</loc>,
<loc href="#style-attribute-fontKerning">tts:fontKerning</loc>,
<loc href="#style-attribute-fontSelectionStrategy">tts:fontSelectionStrategy</loc>,
Expand Down Expand Up @@ -7723,6 +7724,7 @@ that support inline style specifications:</p>
<item><p><specref ref="style-attribute-display"/></p></item>
<item><p><specref ref="style-attribute-displayAlign"/></p></item>
<item><p><specref ref="style-attribute-extent"/></p></item>
<item><p><specref ref="style-attribute-fillLineGap"/></p></item>
<item><p><specref ref="style-attribute-fontFamily"/></p></item>
<item><p><specref ref="style-attribute-fontKerning"/></p></item>
<item><p><specref ref="style-attribute-fontShear"/></p></item>
Expand Down Expand Up @@ -9448,6 +9450,67 @@ while use of a smaller extent makes region overflow more likely.</p>
<loc href="#content-vocabulary-p"><el>p</el></loc>, <specref ref="layout-vocabulary-region-special-inline-animation-semantics"/> applies.</p>
</div4>
</div3>
<div3 id="style-attribute-fillLineGap">
<head>tts:fillLineGap</head>
<p>The <att>tts:fillLineGap</att> attribute is used by the <specref ref="semantics-rendering-model"/> to
determine whether a background color that applies to an inline area is extended to the before and after edges of a
container line area when performing rendering processing.</p>
<p>This attribute may be specified by any element type
that permits use of attributes in the TT Style Namespace; however, this attribute applies
as a style property only to those element types indicated in the following table.</p>
<table id="style-property-details-fillLineGap" role="common">
<col css="width: 25%;"/>
<col/>
<tbody>
<tr>
<td><emph>Values:</emph></td>
<td>
<code>true</code> |
<code>false</code>
</td>
</tr>
<tr>
<td><emph>Initial:</emph></td>
<td><code>false</code></td>
</tr>
<tr>
<td><emph>Applies to:</emph></td>
<td>
<loc href="#content-vocabulary-p"><el>p</el></loc>
</td>
</tr>
<tr>
<td><emph>Inherited:</emph></td>
<td>yes</td>
</tr>
<tr>
<td><emph>Percentages:</emph></td>
<td>N/A</td>
</tr>
<tr>
<td><emph>Animatable:</emph></td>
<td>discrete</td>
</tr>
</tbody>
</table>
<p>If a background color applies to an inline area child of a line area, then if the value of this attribute is <code>true</code>,
that background area is, for rendering purposes, extended in the block progression dimension so as to be coincident with the before
and after edges of the line area; otherwise, if the value of this attribute is <code>false</code>, then that background area is not
extended, but remains bounded by the inline area's border rectangle.</p>
<note role="explanation">
<p>In other words, when this attribute's value is <code>true</code>, background colors rendered on inline areas of adjacent lines
abut one another rather than leaving a visible gap in the block progression dimension, i.e., they fill any line gap (also known as leading).</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>false</code>.</p>
<p>The <att>tts:fillLineGap</att> style is illustrated by the following
example.</p>
<ednote>
<name>Fill Line Gap Example</name>
<date>2017-06-03</date>
<edtext>Insert example fragment and image of tts:fillLineGap.</edtext>
</ednote>
</div3>
<div3 id="style-attribute-fontFamily">
<head>tts:fontFamily</head>
<p>The <att>tts:fontFamily</att> attribute is used to specify a style property that
Expand Down Expand Up @@ -17222,6 +17285,9 @@ line layout on the content of the <loc href="#terms-document-instance">document
</div3> <!-- semantics-line-layout -->
<div3 id="semantics-rendering-model">
<head>Rendering Model</head>
<p>This section specifies the details of certain aspects of the rendering of a formatted TTML document instance.</p>
<div4 id="semantics-rendering-model-painting-order">
<head>Painting Order</head>
<p>The rendering order employed by a <loc href="#terms-presentation-processor">presentation processor</loc> must be consistent with
the rendering model specified by <bibref ref="xsl11"/>, &sect;4.9; in addition, the following constraints apply:</p>
<ulist>
Expand All @@ -17235,6 +17301,15 @@ the rendering model specified by <bibref ref="xsl11"/>, &sect;4.9; in addition,
<loc href="#style-attribute-backgroundImage"><att>tts:backgroundImage</att></loc> attribute are not included in the intrinsic
marks of a block area or an inline area, i.e., they are part of an area's background marks.</p>
</note>
</div4> <!-- semantics-rendering-model-painting-order -->
<div4 id="semantics-rendering-model-inline-area-background">
<head>Painting Background Color of Inline Areas</head>
<p>When the computed value of the <loc href="#style-attribute-fillLineGap"><att>tts:fillLineGap</att></loc> that applies to a block
area generated by a <loc href="#content-vocabulary-p"><el>p</el></loc> element is not <code>false</code>,
then, when rendering a background color of an inline area child of a line area, the before and after edges of the background color are
extended so as to be coincident with the before and after edges of the line area; otherwise, the before and after edges of the background color
are as determined by the block progression dimension of the border rectangle of the inline area.</p>
</div4> <!-- semantics-rendering-model-inline-area-background -->
</div3> <!-- semantics-rendering-order -->
</div2> <!-- layout-semantics -->
</div1> <!-- layout -->
Expand Down Expand Up @@ -19946,6 +20021,15 @@ href="#style-attribute-extent"><att>tts:extent</att></loc>
attribute when applied to a <loc
href="#document-structure-vocabulary-tt"><el>tt</el></loc> element.</p>
</div3>
<div3 id="feature-fillLineGap">
<head>#fillLineGap</head>
<p>A TTML <loc href="#terms-transformation-processor">transformation processor</loc> supports the
<code>#fillLineGap</code> feature if it recognizes and is capable of
transforming the <loc href="#parameter-attribute-fillLineGap"><att>tts:fillLineGap</att></loc> attribute.</p>
<p>A TTML <loc href="#terms-presentation-processor">presentation processor</loc> supports the
<code>#fillLineGap</code> feature if it implements presentation semantic support for the
<loc href="#parameter-attribute-fillLineGap"><att>tts:fillLineGap</att></loc> attribute.</p>
</div3>
<div3 id="feature-font">
<head>#font</head>
<p>A TTML <loc href="#terms-transformation-processor">transformation processor</loc> supports the <code>#font</code>
Expand Down Expand Up @@ -22172,6 +22256,11 @@ is optional (O), for transformation and <loc href="#terms-presentation-processor
<td>O</td>
</tr>
<tr>
<td><loc href="#feature-fillLineGap"><code>#fillLineGap</code></loc></td>
<td>O</td>
<td>O</td>
</tr>
<tr>
<td><loc href="#feature-font"><code>#font</code></loc></td>
<td>O</td>
<td>O</td>
Expand Down Expand Up @@ -25294,6 +25383,13 @@ no default attribute value
<td></td>
</tr>
<tr>
<td><loc href="#style-attribute-fillLineGap"><code>tts:fillLineGap</code></loc></td>
<td><emph>none</emph></td>
<td></td>
<td>expresses rendering behavior of background of inline areas</td>
<td></td>
</tr>
<tr>
<td><loc href="#style-attribute-fontFamily"><code>tts:fontFamily</code></loc></td>
<td><code>font-family</code></td>
<td><bibref ref="xsl11"/></td>
Expand Down Expand Up @@ -26409,6 +26505,7 @@ where <emph>chunking</emph> refers to the subdivision of resource content into c
<item><p><loc href="#style-attribute-border"><att>tts:border</att></loc></p></item>
<item><p><loc href="#style-attribute-bpd"><att>tts:bpd</att></loc></p></item>
<item><p><loc href="#style-attribute-disparity"><att>tts:disparity</att></loc></p></item>
<item><p><loc href="#style-attribute-fillLineGap"><att>tts:fillLineGap</att></loc></p></item>
<item><p><loc href="#style-attribute-fontKerning"><att>tts:fontKerning</att></loc></p></item>
<item><p><loc href="#style-attribute-fontSelectionStrategy"><att>tts:fontSelectionStrategy</att></loc></p></item>
<item><p><loc href="#style-attribute-fontShear"><att>tts:fontShear</att></loc></p></item>
Expand Down
3 changes: 3 additions & 0 deletions spec/xsd/ttml2-datatypes.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@
<xs:enumeration value="remove"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="fillLineGap">
<xs:restriction base="xs:boolean"/>
</xs:simpleType>
<xs:simpleType name="fontFamily">
<xs:restriction base="xs:string"/>
</xs:simpleType>
Expand Down
2 changes: 2 additions & 0 deletions spec/xsd/ttml2-styling-attribs.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<xs:attribute name="display" type="ttd:display"/>
<xs:attribute name="displayAlign" type="ttd:displayAlign"/>
<xs:attribute name="extent" type="ttd:extent"/>
<xs:attribute name="fillLineGap" type="ttd:fillLineGap"/>
<xs:attribute name="fontFamily" type="ttd:fontFamily"/>
<xs:attribute name="fontKerning" type="ttd:fontKerning"/>
<xs:attribute name="fontShear" type="ttd:fontShear"/>
Expand Down Expand Up @@ -75,6 +76,7 @@
<xs:attribute ref="tts:display"/>
<xs:attribute ref="tts:displayAlign"/>
<xs:attribute ref="tts:extent"/>
<xs:attribute ref="tts:fillLineGap"/>
<xs:attribute ref="tts:fontFamily"/>
<xs:attribute ref="tts:fontKerning"/>
<xs:attribute ref="tts:fontShear"/>
Expand Down