diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /layout/reftests/table-overflow | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/table-overflow')
8 files changed, 446 insertions, 0 deletions
diff --git a/layout/reftests/table-overflow/bug785684-ref.html b/layout/reftests/table-overflow/bug785684-ref.html new file mode 100644 index 0000000000..88728b9b28 --- /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="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="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="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="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 0000000000..947c65034d --- /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:clip;"> + <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:clip;"> + <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:clip;"> + <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:clip;"> + <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 0000000000..340fcf7f8e --- /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:clip;"> + <img width="296px" 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:clip;"> + <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:clip;"> + <div class="inner"> + <img width="296px" 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:clip;"> + <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.list b/layout/reftests/table-overflow/reftest.list new file mode 100644 index 0000000000..6a57e6a1b5 --- /dev/null +++ b/layout/reftests/table-overflow/reftest.list @@ -0,0 +1,4 @@ +skip-if(ThreadSanitizer) == bug785684-x.html bug785684-ref.html +== bug785684-y.html bug785684-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 0000000000..5c024f8d2b --- /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 0000000000..70c5c0f566 --- /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 0000000000..9d9ecdfc79 --- /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 0000000000..27236217c6 --- /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> |