Skip to content

Commit 4b08875

Browse files
author
Tantek Çelik
committed
fixed text-overflow ellipsis - style of ellipsis comes from element with text-overflow ellipsis, not from the text it replaces.
1 parent d858ac1 commit 4b08875

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

css3-ui/Overview.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@
5555
src="http://www.w3.org/Icons/w3c_home" width=72> </a>
5656
<h1>CSS Basic User Interface Module Level 3</h1>
5757

58-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 22 January
58+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 23 January
5959
2011</h2>
6060

6161
<dl>
6262
<dt>This version:</dt>
63-
<!-- <dd><a href="http://www.w3.org/TR/2011/ED-css3-ui-20110122">http://www.w3.org/TR/2011/ED-css3-ui-20110122</a></dd> -->
63+
<!-- <dd><a href="http://www.w3.org/TR/2011/ED-css3-ui-20110123">http://www.w3.org/TR/2011/ED-css3-ui-20110123</a></dd> -->
6464

6565
<dd><a
6666
href="http://dev.w3.org/csswg/css3-ui/">http://dev.w3.org/csswg/css3-ui/</a>
@@ -2913,9 +2913,9 @@ <h3 id=text-overflow><span class=secno>9.2. </span> Overflow Ellipsis: the
29132913
<td>as specified
29142914
</table>
29152915

2916-
<p>This property specifies the behavior when text overflows its containing
2917-
element (e.g. has &lsquo;<code class=property>overflow</code>&rsquo; of
2918-
hidden) when text is prevented from wrapping (e.g. due to &lsquo;<code
2916+
<p>This property specifies the behavior when text overflows its element
2917+
(e.g. has &lsquo;<code class=property>overflow</code>&rsquo; of hidden)
2918+
when text is prevented from wrapping (e.g. due to &lsquo;<code
29192919
class=css><code>white-space:nowrap</code></code>&rsquo; or a single word
29202920
is too long to fit). Values have the following meanings:
29212921

@@ -2934,8 +2934,9 @@ <h3 id=text-overflow><span class=secno>9.2. </span> Overflow Ellipsis: the
29342934
ellipsis itself to fit, then clip the rendering of the ellipsis itself.
29352935
Implementations may substitute a more language/script-appropriate
29362936
ellipsis character. Implementations may render three dots "..." instead
2937-
if the ellipsis character is unavailable. The ellipsis should be styled
2938-
consistent with the text being ellipsed.
2937+
if the ellipsis character is unavailable. The ellipsis is styled
2938+
according to the element with text-overflow ellipsis (rather than any
2939+
deeper descendants without text-overflow ellipsis).
29392940
</dl>
29402941

29412942
<h2 id=pointing-devices-and-keyboards><span class=secno>10. </span>Pointing

css3-ui/Overview.src.html

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

1540-
<p>This property specifies the behavior when text overflows its containing
1540+
<p>This property specifies the behavior when text overflows its
15411541
element (e.g. has 'overflow' of hidden) when text 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>
15421542

15431543
<dl>
15441544
<dt><dfn title="text-overflow:clip"><code>clip</code></dfn></dt>
15451545
<dd>Clip text as appropriate. Glyphs may be only partially rendered.</dd>
15461546

15471547
<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 direct 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 should be styled consistent with the text being ellipsed.</dd>
1548+
<dd>Render an ellipsis character (U+2026) to represent clipped text, just before where the text would be otherwise clipped (in the direct 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>
15491549
</dl>
15501550

15511551

0 commit comments

Comments
 (0)