diff options
Diffstat (limited to 'layout/reftests/table-overflow')
13 files changed, 530 insertions, 0 deletions
diff --git a/layout/reftests/table-overflow/963441-ref.html b/layout/reftests/table-overflow/963441-ref.html new file mode 100644 index 000000000..3a62901fd --- /dev/null +++ b/layout/reftests/table-overflow/963441-ref.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html class="reftest-print"> +<head><meta charset="utf-8"></head> +<body> + <div style="height:3in">Tall div. (Scroll to end.)</div> + <div>IS THIS TEXT VISIBLE IN PRINT PREVIEW?</div> + <div>[clear:left]</div> +</body> +</html> diff --git a/layout/reftests/table-overflow/963441.html b/layout/reftests/table-overflow/963441.html new file mode 100644 index 000000000..8777f3362 --- /dev/null +++ b/layout/reftests/table-overflow/963441.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html class="reftest-print"> +<head><meta charset="utf-8"></head> +<body> + <div style="float: left"> + <table cellpadding=0 cellspacing=0> + <tr> + <td> + <div style="height:3in">Tall div. (Scroll to end.)</div> + <div>IS THIS TEXT VISIBLE IN PRINT PREVIEW?</div> + </td> + </tr> + </table> + </div> + <div style="clear: left">[clear:left]</div> +</body> +</html> diff --git a/layout/reftests/table-overflow/bug785684-ref.html b/layout/reftests/table-overflow/bug785684-ref.html new file mode 100644 index 000000000..3f67026f4 --- /dev/null +++ b/layout/reftests/table-overflow/bug785684-ref.html @@ -0,0 +1,89 @@ +<html><head> +<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<style type="text/css"> + .outer { + display:table; + height:20px; + width:300px; + max-width:300px; + } + + .inner { + background-color: silver; + display:table-cell; + height:20px; + min-height:20px; + width:150px; + max-width:150px; + padding: 4px; + } + .clip { + overflow:hidden; + width:-moz-fit-content; + } + </style> +</head> +<body> +<h2>Testing CSS overflow on display:table-cell</h2> +<div class="outer"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="clip"><div class="outer"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div></div> +<div class="outer"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="clip"><div class="outer"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div></div> +<h2>Testing CSS overflow on display:table</h2> +<div class="outer"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="clip"><div class="outer"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div></div> +<div class="outer"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="clip"><div class="outer"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div></div> +</body></html> diff --git a/layout/reftests/table-overflow/bug785684-x.html b/layout/reftests/table-overflow/bug785684-x.html new file mode 100644 index 000000000..1a8a0c45c --- /dev/null +++ b/layout/reftests/table-overflow/bug785684-x.html @@ -0,0 +1,85 @@ +<html><head> +<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<style type="text/css"> + .outer { + display:table; + height:20px; + width:300px; + max-width:300px; + } + + .inner { + background-color: silver; + display:table-cell; + height:20px; + min-height:20px; + width:150px; + max-width:150px; + padding: 4px; + } + </style> +</head> +<body> +<h2>Testing CSS overflow on display:table-cell</h2> +<div class="outer"> + <div class="inner" style="overflow-x:hidden;"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer"> + <div class="inner" style="overflow-x:scroll;"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer"> + <div class="inner" style="overflow-x:-moz-hidden-unscrollable;"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer"> + <div class="inner" style="overflow:hidden;"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer"> + <div class="inner" style="overflow:scroll;"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer"> + <div class="inner" style="overflow:-moz-hidden-unscrollable;"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<h2>Testing CSS overflow on display:table</h2> +<div class="outer" style="overflow-x:hidden;"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer" style="overflow-x:scroll;"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer" style="overflow-x:-moz-hidden-unscrollable;"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer" style="overflow:hidden;"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer" style="overflow:scroll;"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer" style="overflow:-moz-hidden-unscrollable;"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +</body></html> diff --git a/layout/reftests/table-overflow/bug785684-y.html b/layout/reftests/table-overflow/bug785684-y.html new file mode 100644 index 000000000..2235c2825 --- /dev/null +++ b/layout/reftests/table-overflow/bug785684-y.html @@ -0,0 +1,85 @@ +<html><head> +<meta http-equiv="content-type" content="text/html; charset=UTF-8"> +<style type="text/css"> + .outer { + display:table; + height:20px; + width:300px; + max-width:300px; + } + + .inner { + background-color: silver; + display:table-cell; + height:20px; + min-height:20px; + width:150px; + max-width:150px; + padding: 4px; + } + </style> +</head> +<body> +<h2>Testing CSS overflow on display:table-cell</h2> +<div class="outer"> + <div class="inner" style="overflow-y:hidden;"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer"> + <div class="inner" style="overflow-y:scroll;"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer"> + <div class="inner" style="overflow-y:-moz-hidden-unscrollable;"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer"> + <div class="inner" style="overflow:hidden;"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer"> + <div class="inner" style="overflow:scroll;"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer"> + <div class="inner" style="overflow:-moz-hidden-unscrollable;"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<h2>Testing CSS overflow on display:table</h2> +<div class="outer" style="overflow-y:hidden;"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer" style="overflow-y:scroll;"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer" style="overflow-y:-moz-hidden-unscrollable;"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer" style="overflow:hidden;"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer" style="overflow:scroll;"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +<div class="outer" style="overflow:-moz-hidden-unscrollable;"> + <div class="inner"> + <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> + </div> +</div> +</body></html> diff --git a/layout/reftests/table-overflow/reftest-stylo.list b/layout/reftests/table-overflow/reftest-stylo.list new file mode 100644 index 000000000..9797a2f8a --- /dev/null +++ b/layout/reftests/table-overflow/reftest-stylo.list @@ -0,0 +1,8 @@ +# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing +== bug785684-x.html bug785684-x.html +== bug785684-y.html bug785684-y.html +skip-if(B2G||Mulet) == table-row-pagination.html table-row-pagination.html +# Frequently failing on b2g (bug 1155426) +== 963441.html 963441.html +skip == table-caption-scroll.html table-caption-scroll.html +== table-cell-block-overflow.html table-cell-block-overflow.html diff --git a/layout/reftests/table-overflow/reftest.list b/layout/reftests/table-overflow/reftest.list new file mode 100644 index 000000000..566a2e750 --- /dev/null +++ b/layout/reftests/table-overflow/reftest.list @@ -0,0 +1,6 @@ +== bug785684-x.html bug785684-ref.html +== bug785684-y.html bug785684-ref.html +== table-row-pagination.html table-row-pagination-ref.html +== 963441.html 963441-ref.html +== table-caption-scroll.html table-caption-scroll-ref.html +== table-cell-block-overflow.html table-cell-block-overflow-ref.html diff --git a/layout/reftests/table-overflow/table-caption-scroll-ref.html b/layout/reftests/table-overflow/table-caption-scroll-ref.html new file mode 100644 index 000000000..5c024f8d2 --- /dev/null +++ b/layout/reftests/table-overflow/table-caption-scroll-ref.html @@ -0,0 +1,49 @@ +<!DOCTYPE HTML> +<html><head> + <meta charset="utf-8"> + <title>Testing table captions with overflow:auto/scroll/hidden</title> + <style type="text/css"> + +html,body { + color:black; background-color:white; font-size:16px; padding:0; margin:0; height:100%; +} + +.caption { overflow:auto; border:1px solid; height:100px; } +.s { overflow:scroll; } +.h { overflow:hidden; } + </style> +</head> +<body> + +<table border="0" cellspacing="0" cellpadding="0"> +<caption><div class="caption">0<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</div></caption> +<tr><td>TTTTTTTTTT</td></tr> +</table> + +<table border="0" cellspacing="0" cellpadding="0"> +<caption><div class="caption">00000<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</div></caption> +<tr><td>T</td></tr> +</table> + +<table border="0" cellspacing="0" cellpadding="0"> +<caption><div class="s caption">00000<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</div></caption> +<tr><td>T</td></tr> +</table> + +<table border="0" cellspacing="0" cellpadding="0"> +<caption><div class="s caption">00000<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</div></caption> +<tr><td>TTTTTTTTTT</td></tr> +</table> + +<table border="0" cellspacing="0" cellpadding="0"> +<caption><div class="h caption">00000<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</div></caption> +<tr><td>T</td></tr> +</table> + +<table border="0" cellspacing="0" cellpadding="0"> +<caption><div class="h caption">00000<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</div></caption> +<tr><td>TTTTTTTTTT</td></tr> +</table> + +</body> +</html> diff --git a/layout/reftests/table-overflow/table-caption-scroll.html b/layout/reftests/table-overflow/table-caption-scroll.html new file mode 100644 index 000000000..70c5c0f56 --- /dev/null +++ b/layout/reftests/table-overflow/table-caption-scroll.html @@ -0,0 +1,49 @@ +<!DOCTYPE HTML> +<html><head> + <meta charset="utf-8"> + <title>Testing table captions with overflow:auto/scroll/hidden</title> + <style type="text/css"> + +html,body { + color:black; background-color:white; font-size:16px; padding:0; margin:0; height:100%; +} + +caption { border:1px solid; overflow:auto; height:100px; } +.s { overflow:scroll; } +.h { overflow:hidden; } + </style> +</head> +<body> + +<table border="0" cellspacing="0" cellpadding="0"> +<caption>0<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</caption> +<tr><td>TTTTTTTTTT</td></tr> +</table> + +<table border="0" cellspacing="0" cellpadding="0"> +<caption>00000<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</caption> +<tr><td>T</td></tr> +</table> + +<table border="0" cellspacing="0" cellpadding="0"> +<caption class="s">00000<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</caption> +<tr><td>T</td></tr> +</table> + +<table border="0" cellspacing="0" cellpadding="0"> +<caption class="s">00000<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</caption> +<tr><td>TTTTTTTTTT</td></tr> +</table> + +<table border="0" cellspacing="0" cellpadding="0"> +<caption class="h">00000<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</caption> +<tr><td>T</td></tr> +</table> + +<table border="0" cellspacing="0" cellpadding="0"> +<caption class="h">00000<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</caption> +<tr><td>TTTTTTTTTT</td></tr> +</table> + +</body> +</html> diff --git a/layout/reftests/table-overflow/table-cell-block-overflow-ref.html b/layout/reftests/table-overflow/table-cell-block-overflow-ref.html new file mode 100644 index 000000000..9d9ecdfc7 --- /dev/null +++ b/layout/reftests/table-overflow/table-cell-block-overflow-ref.html @@ -0,0 +1,43 @@ +<!DOCTYPE HTML> +<html> +<head> + <meta charset="utf-8"> + <title>CSS Reftest Reference</title> + <style> + .content { + padding: 20px; + height: 100%; + width: 20px; + height: 54px; + background: purple; + } + .fake-td { + float: left; + border: 20px solid teal; + height: 54px; + width: 60px; + padding: 1px; + margin: 1px; + } + .fake-table-tr { + padding: 1px; + } + </style> +</head> + <body> + <div class="fake-table-tr"> + <div class="fake-td"> + <div class="content"></div> + </div> + <div class="fake-td"> + <div class="content"></div> + </div> + <div class="fake-td"> + <div class="content"></div> + </div> + <div class="fake-td"> + <div class="content"></div> + </div> + </div> + </body> +</html> diff --git a/layout/reftests/table-overflow/table-cell-block-overflow.html b/layout/reftests/table-overflow/table-cell-block-overflow.html new file mode 100644 index 000000000..27236217c --- /dev/null +++ b/layout/reftests/table-overflow/table-cell-block-overflow.html @@ -0,0 +1,42 @@ +<!DOCTYPE HTML> +<html> +<head> + <meta charset="utf-8"> + <title>Test table-cell content overflowing in the block direction for each + vertical-align value</title> + <link rel="author" title="Kyle Zentner" href="mailto:zentner.kyle@gmail.com"> + <style> + td { + border: 20px solid teal; + height: 100%; + } + table { + height: 100px; + } + .content { + padding: 20px; + height: 100%; + width: 20px; + background: purple; + } + </style> +</head> + <body> + <table> + <tr> + <td style="vertical-align: middle"> + <div class="content"></div> + </td> + <td style="vertical-align: baseline"> + <div class="content"></div> + </td> + <td style="vertical-align: bottom"> + <div class="content"></div> + </td> + <td style="vertical-align: top"> + <div class="content"></div> + </td> + </tr> + </table> + </body> +</html> diff --git a/layout/reftests/table-overflow/table-row-pagination-ref.html b/layout/reftests/table-overflow/table-row-pagination-ref.html new file mode 100644 index 000000000..2dda93ce3 --- /dev/null +++ b/layout/reftests/table-overflow/table-row-pagination-ref.html @@ -0,0 +1,24 @@ +<!DOCTYPE HTML> +<html class="reftest-print"><head> + <meta charset="utf-8"> + <title>Testing row split</title> + <style type="text/css"> + + html,body { + color:black; background-color:white; font-size:16px; padding:0; margin:0; height:100%; + } + +div { height:160%; } +p { height: 50%; margin:0; } + </style> +</head> +<body> + +<div> +<p></p> +<p>1</p> +</div> + + +</body> +</html> diff --git a/layout/reftests/table-overflow/table-row-pagination.html b/layout/reftests/table-overflow/table-row-pagination.html new file mode 100644 index 000000000..113806162 --- /dev/null +++ b/layout/reftests/table-overflow/table-row-pagination.html @@ -0,0 +1,24 @@ +<!DOCTYPE HTML> +<html class="reftest-print"><head> + <meta charset="utf-8"> + <title>Testing row split</title> + <style type="text/css"> + + html,body { + color:black; background-color:white; font-size:16px; padding:0; margin:0; height:100%; + } + +table { height:160%; width:100%; } +td { height:50%; width:100%; } + </style> +</head> +<body> + +<table border="0" cellspacing="0" cellpadding="0"> +<tr><td></td></tr> +<tr><td valign="top">1</td></tr> +</table> + + +</body> +</html> |