Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>CSS Test: Padding applied to element with display table-caption</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-08-21 -->
<link rel="match" href="margin-applies-to-009-ref.xht" />
<meta name="assert" content="The 'padding' property applies to elements with a display of table-caption." />
<style type="text/css">
#table
{
display: table;
}
#test
{
border: 10px solid blue;
display: table-caption;
padding: 50px;
width: 220px;
}
#test div
{
border: 10px solid orange;
height: 200px;
}
#row
{
display: table-row;
}
#cell
{
display: table-cell;
}
</style>
</head>
<body>
<p>Test passes if there is space between the blue and orange lines on all four sides.</p>
<div id="table">
<div id="test">
<div></div>
</div>
<div id="row">
<div id="cell"></div>
</div>
</div>
</body>
</html>