Bug 659828 - Part 3: Adjust the break-after-caption reftests to work correctly again now that the table top margin gets collapsed with its parent top margin; r=roc
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 27 Sep 2011 18:01:46 -0400
changeset 77846 0d3d4cc835ea724660b3a32dbabaced4f5b1899d
parent 77845 978da009e89be3bf80ebb2f9892bddcf2056b82e
child 77847 f59216ae655302dd3ff1ea7595232038ec0d94be
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersroc
bugs659828
milestone10.0a1
Bug 659828 - Part 3: Adjust the break-after-caption reftests to work correctly again now that the table top margin gets collapsed with its parent top margin; r=roc
layout/reftests/pagination/table-caption-splitaftercaption-1-ref.html
layout/reftests/pagination/table-caption-splitaftercaption-1.html
layout/reftests/pagination/table-caption-splitaftercaption-2-ref.html
layout/reftests/pagination/table-caption-splitaftercaption-2.html
layout/reftests/pagination/table-caption-splitaftercaption-3-ref.html
layout/reftests/pagination/table-caption-splitaftercaption-3.html
layout/reftests/pagination/table-caption-splitaftercaption-4-ref.html
layout/reftests/pagination/table-caption-splitaftercaption-4.html
layout/reftests/pagination/table-caption-splitaftercaption-5-ref.html
layout/reftests/pagination/table-caption-splitaftercaption-5.html
layout/reftests/pagination/table-caption-splitaftercaption-6-ref.html
layout/reftests/pagination/table-caption-splitaftercaption-6.html
layout/reftests/pagination/table-caption-splitaftercaption-7-ref.html
layout/reftests/pagination/table-caption-splitaftercaption-7.html
--- a/layout/reftests/pagination/table-caption-splitaftercaption-1-ref.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-1-ref.html
@@ -1,15 +1,15 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en-US" class="reftest-print">
 <head>
 <style type="text/css">
-div.filler {height: 90px; width: 50px; border:thin solid blue;}
-div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
+div.filler {height: 1in; width: 0.5in; border:thin solid blue;}
+div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 </style>
 </head>
 <body>
 <div class=filler></div>
 <table cellspacing="0" cellpadding="0" style="page-break-before:always">
 <caption><div class="spacer"></div></caption>
 <tbody>
 <tr><td><div class="spacer"></div></td></tr>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-1.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-1.html
@@ -1,15 +1,15 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en-US" class="reftest-print">
 <head>
 <style type="text/css">
-div.filler {height: 90px; width: 50px; border:thin solid blue;}
-div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
+div.filler {height: 1in; width: 0.5in; border:thin solid blue;}
+div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 </style>
 </head>
 <body>
 <div class=filler></div>
 <table cellspacing="0" cellpadding="0">
 <caption><div class="spacer"></div></caption>
 <tbody>
 <tr><td><div class="spacer"></div></td></tr>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-2-ref.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-2-ref.html
@@ -1,15 +1,15 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en-US" class="reftest-print">
 <head>
 <style type="text/css">
-div.filler {height: 25px; width: 50px; border:thin solid blue;}
-div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
+div.filler {height: 0.5in; width: 0.5in; border:thin solid blue;}
+div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 </style>
 </head>
 <body>
 <div class=filler></div>
 <table cellspacing="0" cellpadding="0">
 <caption><div class="spacer"></div></caption>
 <tbody>
 <tr><td><div class="spacer"></div></td></tr>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-2.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-2.html
@@ -1,15 +1,15 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en-US" class="reftest-print">
 <head>
 <style type="text/css">
-div.filler {height:25px; width: 50px; border:thin solid blue;}
-div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
+div.filler {height: 0.5in; width: 0.5in; border:thin solid blue;}
+div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
 </style>
 </head>
 <body>
 <div class=filler></div>
 <table cellspacing="0" cellpadding="0">
 <caption><div class="spacer"></div></caption>
 <tbody>
 <tr><td><div class="spacer"></div></td></tr>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-3-ref.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-3-ref.html
@@ -1,16 +1,15 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en-US" class="reftest-print">
 <head>
 <style type="text/css">
-div.filler {height: 25px; width: 50px; border:thin solid blue;}
-div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
-caption {margin-top: 10px; margin-bottom:20px}
+div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
+caption {margin-top: 0.1in; margin-bottom:0.2in}
 </style>
 </head>
 <body>
 
 <table cellspacing="0" cellpadding="0">
 <caption><div class="spacer"></div></caption>
 <tbody>
 <tr><td><div class="spacer"></div></td></tr>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-3.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-3.html
@@ -1,16 +1,15 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en-US" class="reftest-print">
 <head>
 <style type="text/css">
-div.filler {height:5px; width: 50px; border:thin solid blue;}
-div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
-caption {margin-top: 10px; margin-bottom:20px}
+div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
+caption {margin-top: 0.1in; margin-bottom:0.2in}
 </style>
 </head>
 <body>
 
 <table cellspacing="0" cellpadding="0">
 <caption><div class="spacer"></div></caption>
 <tbody>
 <tr><td><div class="spacer"></div></td></tr>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-4-ref.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-4-ref.html
@@ -1,17 +1,16 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en-US" class="reftest-print">
 <head>
 <style type="text/css">
-div.filler {height: 25px; width: 50px; border:thin solid blue;}
-div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
-caption {margin-top: 5px; margin-bottom:5px}
-table {margin-top: 5px; margin-bottom:5px}
+div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
+caption {margin-top: 0.15in; margin-bottom:0.15in}
+table {margin-top: 0.15in; margin-bottom:0.15in}
 </style>
 </head>
 <body>
 
 <table cellspacing="0" cellpadding="0">
 <caption><div class="spacer"></div></caption>
 <tbody>
 <tr><td><div class="spacer"></div></td></tr>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-4.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-4.html
@@ -1,17 +1,16 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en-US" class="reftest-print">
 <head>
 <style type="text/css">
-div.filler {height:5px; width: 50px; border:thin solid blue;}
-div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
-caption {margin-top: 5px; margin-bottom:5px}
-table {margin-top: 5px; margin-bottom:5px}
+div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
+caption {margin-top: 0.15in; margin-bottom:0.15in}
+table {margin-top: 0.15in; margin-bottom:0.15in}
 </style>
 </head>
 <body>
 
 <table cellspacing="0" cellpadding="0">
 <caption><div class="spacer"></div></caption>
 <tbody>
 <tr><td><div class="spacer"></div></td></tr>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-5-ref.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-5-ref.html
@@ -1,17 +1,16 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en-US" class="reftest-print">
 <head>
 <style type="text/css">
-div.filler {height: 25px; width: 50px; border:thin solid blue;}
-div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
-caption {margin-top: 5px; margin-bottom:5px; caption-side:bottom}
-table {margin-top: 5px; margin-bottom:5px}
+div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
+caption {margin-top: 0.15in; margin-bottom:0.15in; caption-side:bottom}
+table {margin-top: 0.15in; margin-bottom:0.15in}
 </style>
 </head>
 <body>
 
 <table cellspacing="0" cellpadding="0">
 <caption><div class="spacer"></div></caption>
 <tbody>
 <tr><td><div class="spacer"></div></td></tr>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-5.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-5.html
@@ -1,17 +1,16 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en-US" class="reftest-print">
 <head>
 <style type="text/css">
-div.filler {height:5px; width: 50px; border:thin solid blue;}
-div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
-caption {margin-top: 5px; margin-bottom:5px; caption-side:bottom}
-table {margin-top: 5px; margin-bottom:5px}
+div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
+caption {margin-top: 0.15in; margin-bottom:0.15in; caption-side:bottom}
+table {margin-top: 0.15in; margin-bottom:0.15in}
 </style>
 </head>
 <body>
 
 <table cellspacing="0" cellpadding="0">
 <caption><div class="spacer"></div></caption>
 <tbody>
 <tr><td><div class="spacer"></div></td></tr>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-6-ref.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-6-ref.html
@@ -1,17 +1,16 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en-US" class="reftest-print">
 <head>
 <style type="text/css">
-div.filler {height: 25px; width: 50px; border:thin solid blue;}
-div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
-caption {margin-top: 5px; margin-bottom:15px; caption-side:top-outside}
-table {margin-top: 5px; margin-bottom:5px}
+div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
+caption {margin-top: 0.1in; margin-bottom:0.3in; caption-side:top-outside}
+table {margin-top: 0.1in; margin-bottom:0.1in}
 </style>
 </head>
 <body>
 
 <table cellspacing="0" cellpadding="0">
 <caption><div class="spacer"></div></caption>
 <tbody>
 <tr><td><div class="spacer"></div></td></tr>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-6.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-6.html
@@ -1,17 +1,16 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en-US" class="reftest-print">
 <head>
 <style type="text/css">
-div.filler {height:5px; width: 50px; border:thin solid blue;}
-div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
-caption {margin-top: 5px; margin-bottom:15px; caption-side:top-outside}
-table {margin-top: 5px; margin-bottom:5px}
+div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
+caption {margin-top: 0.1in; margin-bottom:0.3in; caption-side:top-outside}
+table {margin-top: 0.1in; margin-bottom:0.1in}
 </style>
 </head>
 <body>
 
 <table cellspacing="0" cellpadding="0">
 <caption><div class="spacer"></div></caption>
 <tbody>
 <tr><td><div class="spacer"></div></td></tr>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-7-ref.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-7-ref.html
@@ -1,17 +1,16 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en-US" class="reftest-print">
 <head>
 <style type="text/css">
-div.filler {height: 25px; width: 50px; border:thin solid blue;}
-div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
-caption {margin-top: 5px; margin-bottom:15px; caption-side:bottom-outside}
-table {margin-top: 5px; margin-bottom:5px}
+div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
+caption {margin-top: 0.1in; margin-bottom:0.3in; caption-side:bottom-outside}
+table {margin-top: 0.1in; margin-bottom:0.1in}
 </style>
 </head>
 <body>
 
 <table cellspacing="0" cellpadding="0">
 <caption><div class="spacer"></div></caption>
 <tbody>
 <tr><td><div class="spacer"></div></td></tr>
--- a/layout/reftests/pagination/table-caption-splitaftercaption-7.html
+++ b/layout/reftests/pagination/table-caption-splitaftercaption-7.html
@@ -1,17 +1,16 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 	"http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en-US" class="reftest-print">
 <head>
 <style type="text/css">
-div.filler {height:5px; width: 50px; border:thin solid blue;}
-div.spacer { height: 0px; width: 0px; padding: 20px;border:thin solid green;}
-caption {margin-top: 5px; margin-bottom:15px; caption-side:bottom-outside}
-table {margin-top: 5px; margin-bottom:5px}
+div.spacer { height: 0px; width: 0px; padding: 0.2in;border:thin solid green;}
+caption {margin-top: 0.1in; margin-bottom:0.3in; caption-side:bottom-outside}
+table {margin-top: 0.1in; margin-bottom:0.1in}
 </style>
 </head>
 <body>
 
 <table cellspacing="0" cellpadding="0">
 <caption><div class="spacer"></div></caption>
 <tbody>
 <tr><td><div class="spacer"></div></td></tr>