blob: 2b5ab5f46d671eea4760b1bd4d21a6928f4f2ada [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Inline-block non-replaced elements shrink-to-fit</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-width">
<meta name="flags" content="ahem">
<meta name="assert" content="If 'width' is 'auto' then 'inline-block' elements shrink-to-fit.">
<style type="text/css">
div
{
background-color: red;
color: blue;
display: inline-block;
font: 1in/1em Ahem;
width: auto;
}
</style>
</head>
<body>
<p>Test passes if there is no red visible on the page.</p>
<div>X</div>
</body>
</html>