2007-01-27 21:36:57 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Testcase for inline-block (bug 9458)</title>
|
|
|
|
<style type="text/css">
|
|
|
|
div { height: 1em; }
|
2007-02-04 23:52:46 +03:00
|
|
|
div#test span { display:inline-block; vertical-align: top; height: 1em; background: red; color: red; }
|
2007-01-27 21:36:57 +03:00
|
|
|
div#after { margin-top:-1em; }
|
2007-02-04 23:52:46 +03:00
|
|
|
div#after span { display: inline; vertical-align: top; background: green; color: green; border-bottom: 0.25em solid green; border-top: 0.25em solid green; }
|
2007-01-27 21:36:57 +03:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2007-02-04 23:52:46 +03:00
|
|
|
<div id="test"><span>X</span></div>
|
2007-01-27 21:36:57 +03:00
|
|
|
<div id="after"><span>X</span></div>
|
|
|
|
</body>
|
|
|
|
</html>
|