Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / 20110323 / overflow-applies-to-013.htm
blob208954d1cfea10f64cf56267dce08be7a6d94dd3
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 <script src="../../resources/ahem.js"></script>
10 <meta name="assert" content="The 'overflow' property does apply to elements with 'display' set to 'table'.">
11 <style type="text/css">
12 #table
14 border: 5px solid transparent;
15 color: white;
16 display: table;
17 table-layout: fixed;
18 font: 20px/1em Ahem;
19 height: 5em;
20 overflow: hidden;
21 table-layout: fixed;
22 width: 5em;
24 #row
26 display: table-row;
28 #cell
30 display: table-cell;
31 white-space: nowrap;
33 #span2
35 color: red;
37 </style>
38 </head>
39 <body>
40 <p>Test passes if there is no red visible on the page.</p>
41 <div id="table">
42 <div id="row">
43 <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
44 </div>
45 </div>
46 </body>
47 </html>