summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/block/margin-collapse/self-collapsing-block-creates-block-formatting-context-expected.html
blob: 132d8da5779a8958a638e6c433198b6d369938c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE HTML>
<html>
<style>
.test {
    margin-top: 10px;
    width: 40px;
    height:40px;
    background-color: green;
}
</style>
<body>
https://code.google.com/p/chromium/issues/detail?id=321295
The top and bottom margins of a box collapse together only if they are the  "top and bottom margins of a box that does not establish a new block formatting context".
<br>
There should be no red below.  
<div class="test"></div>
<div class="test"></div>
<div class="test"></div>
<div class="test"></div>
</body>
</html>