servo/tests/ref/inline_block_baseline_ref.html
Glenn Watson 98624c9576 Implement basic support for display: inline-block.
This still needs a lot of work, but it covers the basic
cases and improves wikipedia while passing all existing tests.

Tweak reftest to deal with linux/travis black background.
2014-09-13 07:13:42 +10:00

32 lines
720 B
HTML

<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
margin: 0;
}
.red {
background-color: red;
}
.green {
background-color: green;
}
.d1 {
position: absolute;
width: 400px;
height: 400px;
}
.d2 {
position: absolute;
left: 400px;
top: 80px;
width: 300px;
height: 300px;
}
</style>
</head>
<body>
<div class="d1 red"></div>
<div class="d2 green"></div>
</body>
</html>