1 | 1 | Test for https://bugs.webkit.org/show_bug.cgi?id=109956 -webkit-margin-collapse: separate doesn't work correctly for before margins. The test basically creates an empty block inside a container with a margin that collapses with children. The empty block has the margins set to separate so its height should be 0px. The container is not selfcollapsing so it should have a height of 10px+10px+2px=22px.
2 | 2 |
3 | 3 | On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4 | 4 |
5 | 5 |
6 | 6 | PASS document.getElementById("zero_height").offsetHeight is 0
7 |  | PASS document.getElementById("22px_height").offsetHeight is 22
| 7 | FAIL document.getElementById("22px_height").offsetHeight should be 22. Was 12.
8 | 8 | PASS successfullyParsed is true
9 | 9 |
10 | 10 | TEST COMPLETE
11 | 11 |