1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: overflow applied to elements with 'display' set to 'table'</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
8 <meta name="flags" content="ahem">
9 <meta name="assert" content="The 'overflow' property does apply to elements with 'display' set to 'table'.">
10 <style type="text/css">
11 #table
12 {
13 border: 5px solid transparent;
14 color: white;
15 display: table;
16 table-layout: fixed;
17 font: 20px/1em Ahem;
18 height: 5em;
19 overflow: hidden;
20 table-layout: fixed;
21 width: 5em;
22 }
23 #row
24 {
25 display: table-row;
26 }
27 #cell
28 {
29 display: table-cell;
30 white-space: nowrap;
31 }
32 #span2
33 {
34 color: red;
35 }
36 </style>
37 </head>
38 <body>
39 <p>Test passes if there is no red visible on the page.</p>
40 <div id="table">
41 <div id="row">
42 <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
43 </div>
44 </div>
45 </body>
46 </html>