Files
servo/tests/wpt/css-tests/css21_dev/html4/min-height-applies-to-007.htm

38 lines
1.3 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Min-height applied to elements with 'display' set to 'table-cell'</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height">
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights">
<meta name="flags" content="may">
<meta name="assert" content="The 'min-height' property applies to elements with 'display' set to 'table-cell'.">
<style type="text/css">
#table
{
display: table;
table-layout: fixed;
}
#row
{
display: table-row;
}
#cell
{
background: black;
display: table-cell;
min-height: 1in;
width: 1in;
}
</style>
</head>
<body>
<p>Test passes if there is a box below.</p>
<!-- If 'min-height' is supported on 'table-cell' then a square will be visible. -->
<div id="table">
<div id="row">
<div id="cell"></div>
</div>
</div>
</body>
</html>