OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../../fast/js/resources/js-test-pre.js"></script> | 3 <script src="../../../resources/js-test.js"></script> |
4 <style> | 4 <style> |
5 .container { | 5 .container { |
6 border: thin solid blue; | 6 border: thin solid blue; |
7 } | 7 } |
8 | 8 |
9 .child_with_margins { | 9 .child_with_margins { |
10 margin-top: 10px; | 10 margin-top: 10px; |
11 margin-bottom: 10px; | 11 margin-bottom: 10px; |
12 } | 12 } |
13 | 13 |
(...skipping 17 matching lines...) Expand all Loading... |
31 testRunner.dumpAsText(); | 31 testRunner.dumpAsText(); |
32 | 32 |
33 description("Test for https://bugs.webkit.org/show_bug.cgi?id=109956 -we
bkit-margin-collapse: separate doesn't work correctly for before margins. \ | 33 description("Test for https://bugs.webkit.org/show_bug.cgi?id=109956 -we
bkit-margin-collapse: separate doesn't work correctly for before margins. \ |
34 The test basically creates an empty block inside a container with a
margin that collapses with children. The empty block has the margins \ | 34 The test basically creates an empty block inside a container with a
margin that collapses with children. The empty block has the margins \ |
35 set to separate so its height should be 0px. The container is not se
lfcollapsing so it should have a height of 10px+10px+2px=22px."); | 35 set to separate so its height should be 0px. The container is not se
lfcollapsing so it should have a height of 10px+10px+2px=22px."); |
36 shouldEvaluateTo('document.getElementById("zero_height").offsetHeight',
'0'); | 36 shouldEvaluateTo('document.getElementById("zero_height").offsetHeight',
'0'); |
37 shouldEvaluateTo('document.getElementById("22px_height").offsetHeight',
'22'); | 37 shouldEvaluateTo('document.getElementById("22px_height").offsetHeight',
'22'); |
38 </script> | 38 </script> |
39 </body> | 39 </body> |
40 </html> | 40 </html> |
OLD | NEW |