Skip to content

Commit 14e5d11

Browse files
author
Tantek Çelik
committed
text-overflow updates: block container instead of block-level, its block container (being more specific), and example that demonstrates both anonymous block boxes and the fact that text-overflow does not inherit (even visually).
1 parent bccc2e0 commit 14e5d11

3 files changed

Lines changed: 54 additions & 10 deletions

File tree

css3-ui/Overview.html

Lines changed: 28 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 1 February
58+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 4 February
5959
2011</h2>
6060

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

6565
<dd><a
6666
href="http://dev.w3.org/csswg/css3-ui/">http://dev.w3.org/csswg/css3-ui/</a>
@@ -2680,7 +2680,7 @@ <h2 id=resizing-amp-overflow><span class=secno>9. </span>Resizing &amp;
26802680
<p>This section is <em>normative</em>.
26812681

26822682
<p>CSS2.1 provides a mechanism for controlling the appearance of a
2683-
scrolling mechanism (e.g. scrollbars) on block-level elements. This
2683+
scrolling mechanism (e.g. scrollbars) on block container elements. This
26842684
specification adds to that a mechanism for controlling user resizability
26852685
of elements as well as the ability to specify text overflow behavior.
26862686

@@ -2911,8 +2911,8 @@ <h3 id=text-overflow><span class=secno>9.2. </span> Overflow Ellipsis: the
29112911
<td>as specified
29122912
</table>
29132913

2914-
<p>This property specifies the behavior when text overflows a block-level
2915-
element that has <span class=property>&lsquo;<code
2914+
<p>This property specifies the behavior when text overflows its block
2915+
container element that has <span class=property>&lsquo;<code
29162916
class=property>overflow</code>&rsquo;</span> other than <span
29172917
class=value>&lsquo;<code class=property>visible</code>&rsquo;</span>. Text
29182918
may overflow for example when it is prevented from wrapping (e.g. due to
@@ -2953,8 +2953,8 @@ <h3 id=text-overflow><span class=secno>9.2. </span> Overflow Ellipsis: the
29532953

29542954
<h4 class="no-num no-toc" id=text-overflow-examples>text-overflow examples</h4>
29552955

2956-
<p>These examples demonstrate setting the text-overflow of a block-level
2957-
element that has text which overflows its dimensions:</p>
2956+
<p>These examples demonstrate setting the text-overflow of a block
2957+
container element that has text which overflows its dimensions:</p>
29582958

29592959
<h5 class="no-num no-toc" id=sample-css-for-a-div>sample CSS for a div:</h5>
29602960

@@ -3019,6 +3019,27 @@ <h5 class="no-num no-toc" id=sample-css-for-a-div>sample CSS for a div:</h5>
30193019
padding:.2em;
30203020
font-family:Helvetica,sans-serif;overflow:hidden;text-overflow:ellipsis;">CSS
30213021
IS AWESOME</div>
3022+
3023+
<tr>
3024+
<td>
3025+
<pre><code>&lt;div style="<a href="#ellipsis"><strong>text-overflow:ellipsis;</strong></a> overflow:hidden"&gt;
3026+
NESTED
3027+
&lt;p&gt;PARAGRAPH&lt;/p&gt;
3028+
WON'T ELLIPSE.
3029+
&lt;/div&gt;
3030+
</code></pre>
3031+
3032+
<td> <object data=nes.png type="image/png"> Fourth, a box with a nested
3033+
paragraph demonstrating anonymous block boxes equivalency and
3034+
non-inheritance into a nested element. </object>
3035+
3036+
<td>
3037+
<div style="width:3.2em; border:solid .1em black; margin:1em 0;
3038+
padding:.2em;
3039+
font-family:Helvetica,sans-serif;overflow:hidden;text-overflow:ellipsis;">NESTED
3040+
3041+
<p>PARAGRAPH</p>
3042+
WON'T ELLIPSE.</div>
30223043
</table>
30233044
</div>
30243045

css3-ui/Overview.src.html

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ <h2>Resizing &amp; Overflow</h2>
14311431

14321432
<p>This section is <em>normative</em>.</p>
14331433

1434-
<p>CSS2.1 provides a mechanism for controlling the appearance of a scrolling mechanism (e.g. scrollbars) on block-level elements.
1434+
<p>CSS2.1 provides a mechanism for controlling the appearance of a scrolling mechanism (e.g. scrollbars) on block container elements.
14351435
This specification adds to that a mechanism for controlling
14361436
user resizability of elements as well as the ability to specify text overflow behavior.</p>
14371437

@@ -1538,7 +1538,7 @@ <h3 id="text-overflow">
15381538
</tbody></table>
15391539

15401540
<p>This property specifies the behavior when text overflows
1541-
a block-level element
1541+
its block container element
15421542
that has <span class="property">'overflow'</span>
15431543
other than <span class="value">'visible'</span>.
15441544
Text may overflow for example when it is prevented from wrapping
@@ -1573,7 +1573,7 @@ <h3 id="text-overflow">
15731573

15741574
<div class="example"><p style="display:none">Example(s):</p>
15751575
<h4 class="no-num no-toc">text-overflow examples</h4>
1576-
<p>These examples demonstrate setting the text-overflow of a block-level element that has text which overflows its dimensions:
1576+
<p>These examples demonstrate setting the text-overflow of a block container element that has text which overflows its dimensions:
15771577
</p>
15781578
<h5 class="no-num no-toc">sample CSS for a div:</h5>
15791579
<pre><code class="css">div { width:3.2em; border:solid .1em black; margin:1em 0; padding:.2em; font-family:Helvetica,sans-serif}
@@ -1631,6 +1631,29 @@ <h5 class="no-num no-toc">sample HTML fragments, renderings, and your browser:</
16311631
<div style="width:3.2em; border:solid .1em black; margin:1em 0; padding:.2em; font-family:Helvetica,sans-serif;overflow:hidden;text-overflow:ellipsis;">CSS IS AWESOME</div>
16321632
</td>
16331633
</tr>
1634+
1635+
1636+
<tr>
1637+
<td><pre><code>&lt;div style="<strong>text-overflow:ellipsis;</strong> overflow:hidden"&gt;
1638+
NESTED
1639+
&lt;p&gt;PARAGRAPH&lt;/p&gt;
1640+
WON'T ELLIPSE.
1641+
&lt;/div&gt;
1642+
</code></pre></td>
1643+
1644+
<td>
1645+
<object type="image/png" data="nes.png">
1646+
Fourth, a box with a nested paragraph demonstrating anonymous block boxes equivalency and non-inheritance into a nested element.
1647+
</object>
1648+
</td>
1649+
1650+
<td>
1651+
<div style="width:3.2em; border:solid .1em black; margin:1em 0; padding:.2em; font-family:Helvetica,sans-serif;overflow:hidden;text-overflow:ellipsis;">NESTED
1652+
<p>PARAGRAPH</p>
1653+
WON'T ELLIPSE.</div>
1654+
</td>
1655+
1656+
</tr>
16341657
</tbody></table>
16351658

16361659
</div>

css3-ui/nes.png

8.68 KB
Loading

0 commit comments

Comments
 (0)