8000 csswg-drafts/css-speech-1/Overview.src.html at 5056d67a8be2c5c44361bbaba03b7bdf5efcfe28 · w3c/csswg-drafts · GitHub
Skip to content

Latest commit

 

History

History
2735 lines (2679 loc) · 116 KB

File metadata and controls

2735 lines (2679 loc) · 116 KB
<tbody>
<tr>
<td>Name:</td>
<td>
<dfn id="pause">pause</dfn>
</td>
</tr>
<tr>
<td>
<em>Value:</em>
</td>
<td>&lt;'pause-before'&gt; &lt;'pause-after'&gt;?</td>
</tr>
<tr>
<td>
<em>Initial:</em>
</td>
<td>N/A (see individual properties)</td>
</tr>
<tr>
<td>
<em>Applies&nbsp;to:</em>
</td>
<td>all elements</td>
</tr>
<tr>
<td>
<em>Inherited:</em>
</td>
<td>no</td>
</tr>
<tr>
<td>
<em>Percentages:</em>
</td>
<td>N/A</td>
</tr>
<tr>
<td>
<em>Media:</em>
</td>
<td>speech</td>
</tr>
<tr>
<td>
<em>Computed value:</em>
</td>
<td>N/A (see individual properties)</td>
</tr>
</tbody>
</table>
<p>The 'pause' property is a shorthand property for 'pause-before' and 'pause-after'. If two
values are given, the first value is 'pause-before' and the second is 'pause-after'. If only
one value is given, it applies to both properties.</p>
<div class="example">
<p> Examples of property values:</p>
<pre>
h1 { pause: 20ms; } /* pause-before: 20ms; pause-after: 20ms */
h2 { pause: 30ms 40ms; } /* pause-before: 30ms; pause-after: 40ms */
h3 { pause-after: 10ms; } /* pause-before: <i>unspecified</i>; pause-after: 10ms */</pre>
</div>
<h3 id="collapsed-pauses">Collapsing pauses</h3>
<p> The pause defines the minimum distance of the aural "box" to the aural "boxes" before and
after it. Adjoining pauses are merged by selecting the strongest named break and the longest
absolute time interval. For example, "strong" is selected when comparing "strong" and "weak",
"1s" is selected when comparing "1s" and "250ms", and "strong" and "250ms" take effect
additively when comparing "strong" and "250ms". </p>
<p>The following pauses are adjoining:</p>
<ol>
<li>The 'pause-after' of an aural "box" and the 'pause-after' of its last child, provided the
former has no 'rest-after' and no 'cue-after'.</li>
<li>The 'pause-before' of an aural "box" and the 'pause-before' of its first child, provided
the former has no 'rest-before' and no 'cue-before'.</li>
<li>The 'pause-after' of an aural "box" and the 'pause-before' of its next sibling.</li>
<li>The 'pause-before' and 'pause-after' of an aural "box", if the the "box" has a
'voice-duration' of "0ms" and no 'rest-before' or 'rest-after' and no 'cue-before' or
'cue-after', or if the the "box" has no rendered content at all (see 'speak').</li>
</ol>
<p>A collapsed pause is considered adjoining to another pause if any of its component pauses is
adjoining to that pause.</p>
<p class="note"> Note that 'pause' has been moved from between the element's contents and any
'cue' to outside the 'cue'. This is not backwards compatible with the informative CSS2.1 Aural
appendix [[!CSS21]].</p>
<h2 id="rest-props">Rest properties</h2>
<h3 id="rest-props-rest-before-after">The 'rest-before' and 'rest-after' properties</h3>
<table class="propdef" summary="name: syntax">
<tbody>
<tr>
<td>Name:</td>
<td>
<dfn id="rest-before">rest-before</dfn>
</td>
</tr>
<tr>
<td>
<em>Value:</em>
</td>
<td>&lt;time&gt; | none | x-weak | weak | medium | strong | x-strong </td>
</tr>
<tr>
<td>
<em>Initial:</em>
</td>
<td>none</td>
</tr>
<tr>
<td>