1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
6 <title>CSS Test: height and width of element set to 'display: table'
</title>
10 http://test.csswg.org/suites/css2.1/20101210/html4/empty-cells-applies-to-007.htm
13 <link rel=
"author" title=
"GĂ©rard Talbot" href=
"http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
14 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/tables.html#height-layout" title=
"17.5.3 Table height algorithms">
15 <link rel=
"bookmark" href=
"http://lists.w3.org/Archives/Public/www-style/2011Jan/0178.html" title=
"[CSS21] Question on section 17.6.1 The separated borders model and width of inline-table">
16 <meta name=
"flags" content=
"">
17 <meta name=
"assert" content=
"The height and width of an element styled with display set to 'table' is given by its height and width properties when specified.">
19 <style type=
"text/css">
20 div#overlapped-red-reference
22 background-color: red
;
29 div#overlapping-green-test
31 background-color: green
;
32 border: green solid
25px;
33 border-collapse: separate
;
44 <p>Test passes if there is a filled green square and
<strong>no red
</strong>.
</p>
46 <div id=
"overlapped-red-reference"></div>
48 <div id=
"overlapping-green-test"></div>