Skip to content

Commit 563bf95

Browse files
author
Tantek Çelik
committed
clean up summary and details of text-overflow ellipsis description, document bidi/direction details per WebKit + Opera consistent implementation.
1 parent 242e94e commit 563bf95

2 files changed

Lines changed: 43 additions & 18 deletions

File tree

css3-ui/Overview.html

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2912,11 +2912,12 @@ <h3 id=text-overflow><span class=secno>9.2. </span> Overflow Ellipsis: the
29122912
</table>
29132913

29142914
<p>This property specifies the behavior when text overflows a block-level
2915-
element that has &lsquo;<code class=property>overflow</code>&rsquo; other
2916-
than &lsquo;<code class=property>visible</code>&rsquo;. Text may overflow
2917-
for example when it is prevented from wrapping (e.g. due to &lsquo;<code
2918-
class=css><code>white-space:nowrap</code></code>&rsquo; or a single word
2919-
is too long to fit). Values have the following meanings:
2915+
element that has <span class=property>&lsquo;<code
2916+
class=property>overflow</code>&rsquo;</span> other than <span
2917+
class=value>&lsquo;<code class=property>visible</code>&rsquo;</span>. Text
2918+
may overflow for example when it is prevented from wrapping (e.g. due to
2919+
&lsquo;<code class=css><code>white-space:nowrap</code></code>&rsquo; or a
2920+
single word is too long to fit). Values have the following meanings:
29202921

29212922
<dl>
29222923
<dt><dfn id=clip title="text-overflow:clip"><code>clip</code></dfn>
@@ -2926,16 +2927,21 @@ <h3 id=text-overflow><span class=secno>9.2. </span> Overflow Ellipsis: the
29262927
<dt><dfn id=ellipsis
29272928
title="text-overflow:ellipsis"><code>ellipsis</code></dfn>
29282929

2929-
<dd>Render an ellipsis character (U+2026) to represent clipped text, just
2930-
before where the text would be otherwise clipped (in the direction of the
2931-
flow of the text being clipped), replacing however many characters are
2932-
necessary for the ellipsis to fit. If there is insufficient space for the
2933-
ellipsis itself to fit, then clip the rendering of the ellipsis itself.
2934-
Implementations may substitute a more language/script-appropriate
2935-
ellipsis character. Implementations may render three dots "..." instead
2936-
if the ellipsis character is unavailable. The ellipsis is styled
2937-
according to the element with text-overflow ellipsis (rather than any
2938-
deeper descendants without text-overflow ellipsis).
2930+
<dd>Render an ellipsis character (U+2026) to represent clipped text
2931+
replacing however many characters are necessary for the ellipsis to fit.
2932+
Characters are dropped in reverse document source order: later characters
2933+
are dropped first. If the <span class=property>&lsquo;<code
2934+
class=property>direction</code>&rsquo;</span> of the element is <span
2935+
class=value>&lsquo;<code class=property>ltr</code>&rsquo;</span> (<span
2936+
class=value>&lsquo;<code class=property>rtl</code>&rsquo;</span>) then
2937+
the ellipsis is rendered to the right (left) of the remaining characters
2938+
on the line. If there is insufficient space for the ellipsis itself to
2939+
fit, then clip the rendering of the ellipsis itself. Implementations may
2940+
substitute a more language/script-appropriate ellipsis character.
2941+
Implementations may render three dots "..." instead if the ellipsis
2942+
character is unavailable. The ellipsis is styled according to the element
2943+
with text-overflow ellipsis (rather than any deeper descendants without
2944+
text-overflow ellipsis).
29392945
</dl>
29402946

29412947
<div class=example>

css3-ui/Overview.src.html

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,15 +1537,34 @@ <h3 id="text-overflow">
15371537
<td>as specified</td></tr>
15381538
</tbody></table>
15391539

1540-
<p>This property specifies the behavior when text overflows a block-level
1541-
element that has 'overflow' other than 'visible'. Text may overflow for example when it is prevented from wrapping (e.g. due to '<code>white-space:nowrap</code>' or a single word is too long to fit). Values have the following meanings:</p>
1540+
<p>This property specifies the behavior when text overflows
1541+
a block-level element
1542+
that has <span class="property">'overflow'</span>
1543+
other than <span class="value">'visible'</span>.
1544+
Text may overflow for example when it is prevented from wrapping
1545+
(e.g. due to '<code>white-space:nowrap</code>'
1546+
or a single word is too long to fit).
1547+
Values have the following meanings:</p>
15421548

15431549
<dl>
15441550
<dt><dfn title="text-overflow:clip"><code>clip</code></dfn></dt>
15451551
<dd>Clip text as appropriate. Glyphs may be only partially rendered.</dd>
15461552

15471553
<dt><dfn title="text-overflow:ellipsis"><code>ellipsis</code></dfn></dt>
1548-
<dd>Render an ellipsis character (U+2026) to represent clipped text, just before where the text would be otherwise clipped (in the direction of the flow of the text being clipped), replacing however many characters are necessary for the ellipsis to fit. If there is insufficient space for the ellipsis itself to fit, then clip the rendering of the ellipsis itself. Implementations may substitute a more language/script-appropriate ellipsis character. Implementations may render three dots "..." instead if the ellipsis character is unavailable. The ellipsis is styled according to the element with text-overflow ellipsis (rather than any deeper descendants without text-overflow ellipsis).</dd>
1554+
<dd>Render an ellipsis character (U+2026) to represent clipped text
1555+
replacing however many characters are necessary for the ellipsis to fit.
1556+
Characters are dropped in reverse document source order:
1557+
later characters are dropped first.
1558+
If the <span class="property">'direction'</span> of the element is
1559+
<span class="value">'ltr'</span> (<span class="value">'rtl'</span>)
1560+
then the ellipsis is rendered to the right (left) of the remaining
1561+
characters on the line. If there is insufficient space for the
1562+
ellipsis itself to fit, then clip the rendering of the ellipsis itself.
1563+
Implementations may substitute a more language/script-appropriate
1564+
ellipsis character. Implementations may render three dots "..." instead
1565+
if the ellipsis character is unavailable. The ellipsis is styled according
1566+
to the element with text-overflow ellipsis (rather than any
1567+
deeper descendants without text-overflow ellipsis).</dd>
15491568
</dl>
15501569

15511570
<div class="example"><p style="display:none">Example(s):</p>

0 commit comments

Comments
 (0)