Skip to content

Commit

Permalink
Merge pull request #944 from w3c/issue-0943-non-negative-real
Browse files Browse the repository at this point in the history
Improve non-negative-real interoperability (#943).
  • Loading branch information
skynavga authored Aug 2, 2019
2 parents 9a9b4e8 + 55ef5f6 commit d8995c4
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions spec/profiles/ttml2-full.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
<feature value="required">#length-pixel</feature>
<feature value="required">#length-positive</feature>
<feature value="required">#length-real</feature>
<feature value="required" extends="#length-real">#length-real-version-2</feature>
<feature value="required">#length-root-container-relative</feature>
<feature value="required" extends="#length">#length-version-2</feature>
<feature value="required">#letterSpacing</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 @@ -141,6 +141,7 @@
<feature value="optional">#length-pixel</feature>
<feature value="optional">#length-positive</feature>
<feature value="optional">#length-real</feature>
<feature value="optional" extends="#length-real">#length-real-version-2</feature>
<feature value="optional">#length-root-container-relative</feature>
<feature value="optional" extends="#length">#length-version-2</feature>
<feature value="optional">#letterSpacing</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 @@ -141,6 +141,7 @@
<feature value="optional">#length-pixel</feature>
<feature value="optional">#length-positive</feature>
<feature value="optional">#length-real</feature>
<feature value="optional" extends="#length-real">#length-real-version-2</feature>
<feature value="optional">#length-root-container-relative</feature>
<feature value="optional" extends="#length">#length-version-2</feature>
<feature value="optional">#letterSpacing</feature>
Expand Down
25 changes: 24 additions & 1 deletion spec/ttml2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15616,6 +15616,7 @@ subset of the set of named colors specified by <bibref ref="svg11"/>, &sect;4.2.

non-negative-real
: <loc href="#style-value-digit">&lt;digit&gt;</loc>* "." <loc href="#style-value-digit">&lt;digit&gt;</loc>+
| <loc href="#style-value-digit">&lt;digit&gt;</loc>+ "."
</eg>
</td>
</tr>
Expand Down Expand Up @@ -21471,6 +21472,20 @@ feature if it supports the <code>#length-positive</code> feature as defined by <
<p>A TTML content processor supports the <code>#length-real</code>
feature if it supports the <code>#length-real</code> feature as defined by <bibref ref="ttml1"/>, &sect;D.1.50.</p>
</div3>
<div3 id="feature-length-real-version-2">
<head>#length-real-version-2</head>
<p>A TTML <loc href="#terms-transformation-processor">transformation processor</loc> supports the
<code>#length-real-version-2</code> feature if it recognizes and is capable of
transforming the syntax and semantics of real values of the <loc href="#style-value-length">&lt;length&gt;</loc> style value
expression that include all values of the <code>non-negative-real</code> non-terminal expression defined by
<code><loc href="#style-value-non-negative-number">&lt;non-negative-number&gt;</loc></code>.</p>
<p>A TTML <loc href="#terms-presentation-processor">presentation processor</loc> supports the <code>#length-real-version-2</code>
feature if it implements presentation semantic support for values of the <loc href="#style-value-length">&lt;length&gt;</loc> style value
expression as described above.</p>
<p>The <code>#length-real-version-2</code> feature is a syntactic extension of the <code>#length-real</code> feature.</p>
<p>It is an error for a content profile to require or permit use of the <code>#length-real-version-2</code> feature but prohibit use of the
<loc href="#feature-length-real"><code>#length-real</code></loc> feature.</p>
</div3>
<div3 id="feature-length-root-container-relative">
<head>#length-root-container-relative</head>
<p>A TTML <loc href="#terms-transformation-processor">transformation processor</loc> supports the
Expand All @@ -21490,13 +21505,15 @@ expression.
<p>A TTML processor supports the <code>#length-version-2</code> feature if it supports the following features:</p>
<ulist>
<item><p><loc href="#feature-length"><code>#length</code></loc></p></item>
<item><p><loc href="#feature-length-real-version-2"><code>#length-real-version-2</code></loc></p></item>
<item><p><loc href="#feature-length-root-container-relative"><code>#length-root-container-relative</code></loc></p></item>
</ulist>
<p>The <code>#length-version-2</code> feature is a syntactic and semantic extension of the
<loc href="#feature-length"><code>#length</code></loc> feature.</p>
<p>It is an error for a content profile to require or permit use of the <code>#length-version-2</code> feature
but prohibit use of any of the following features:
<loc href="#feature-length"><code>#length</code></loc> or
<loc href="#feature-length"><code>#length</code></loc>,
<loc href="#feature-length-real-version-2"><code>#length-real-version-2</code></loc>, or
<loc href="#feature-length-root-container-relative"><code>#length-root-container-relative</code></loc>.</p>
</div3>
<div3 id="feature-letterSpacing">
Expand Down Expand Up @@ -23637,6 +23654,12 @@ is optional (O), for a TTML <loc href="#terms-content-processor">content process
<td css="text-align:center;">O</td>
</tr>
<tr>
<td><loc href="#feature-length-real-version-2"><code>#length-real-version-2</code></loc></td>
<td css="text-align:center;">2</td>
<td css="text-align:center;">O</td>
<td css="text-align:center;">O</td>
</tr>
<tr>
<td><loc href="#feature-length-root-container-relative"><code>#length-root-container-relative</code></loc></td>
<td css="text-align:center;">2</td>
<td css="text-align:center;">O</td>
Expand Down

0 comments on commit d8995c4

Please sign in to comment.