Bug 482889 Part 1. Tests for table anonymous object construction. r=bernd, r+sr=roc

This commit is contained in:
Boris Zbarsky 2009-03-15 15:57:46 -04:00
Родитель fe27b33636
Коммит 14af45d60f
26 изменённых файлов: 565 добавлений и 0 удалений

Просмотреть файл

@ -120,6 +120,9 @@ include svg/reftest.list
# svg-integration/
include svg-integration/reftest.list
# table-anonymous-boxes/
include table-anonymous-boxes/reftest.list
# table-background/
include table-background/reftest.list

Просмотреть файл

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<table cellpadding="0" cellspacing="0">
<tr>
<td>Row 1, Col 1</td>
<td>Row 1, Col 2</td>
<td>Row 1, Col 3</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0">
<tr>
<td>Row 22, Col 1</td>
<td>Row 22, Col 2</td>
<td>Row 22, Col 3</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0">
<tr>
<td>Row 333, Col 1</td>
<td>Row 333, Col 2</td>
<td>Row 333, Col 3</td>
</tr>
</table>
</body>
</html>

Просмотреть файл

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<table cellpadding="0" cellspacing="0">
<colgroup><col style="background: yellow"><col style="background: cyan"><col style="background: lime"></colgroup>
<tr>
<td>Row 1, Col 1</td>
<td>Row 1, Col 2</td>
<td>Row 1, Col 3</td>
</tr>
<tr>
<td>Row 22, Col 1</td>
<td>Row 22, Col 2</td>
<td>Row 22, Col 3</td>
</tr>
<tr>
<td>Row 333, Col 1</td>
<td>Row 333, Col 2</td>
<td>Row 333, Col 3</td>
</tr>
</table>
</body>
</html>

Просмотреть файл

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<table cellpadding="0" cellspacing="0">
<tr>
<td>Row 1, Col 1</td>
<td>Row 1, Col 2</td>
<td>Row 1, Col 3</td>
</tr>
<tr>
<td>Row 22, Col 1</td>
<td>Row 22, Col 2</td>
<td>Row 22, Col 3</td>
</tr>
<tr>
<td>Row 333, Col 1</td>
<td>Row 333, Col 2</td>
<td>Row 333, Col 3</td>
</tr>
</table>
</body>
</html>

Просмотреть файл

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display: block">
<div style="display: table-cell">Row 1, Col 1</div>
<div style="display: table-cell">Row 1, Col 2</div>
<div style="display: table-cell">Row 1, Col 3</div>
</div>
<div style="display: block">
<div style="display: table-cell">Row 22, Col 1</div>
<div style="display: table-cell">Row 22, Col 2</div>
<div style="display: table-cell">Row 22, Col 3</div>
</div>
<div style="display: block">
<div style="display: table-cell">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<div style="display: table-cell">Row 333, Col 3</div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display: table-row">
<div style="display: table-cell">Row 1, Col 1</div>
<div style="display: table-cell">Row 1, Col 2</div>
<div style="display: table-cell">Row 1, Col 3</div>
</div>
<div style="display: block">
<div style="display: table-cell">Row 22, Col 1</div>
<div style="display: table-cell">Row 22, Col 2</div>
<div style="display: table-cell">Row 22, Col 3</div>
</div>
<div style="display: table-row">
<div style="display: table-cell">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<div style="display: table-cell">Row 333, Col 3</div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display:table">
<div style="display: table-column; background: yellow"></div>
<div style="display: table-cell">Row 1, Col 1</div>
<div style="display: table-cell">Row 1, Col 2</div>
<div style="display: table-cell">Row 1, Col 3</div>
<div style="display: table-column; background: cyan"></div>
<div style="display: table-row-group">
<div style="display: table-row">
<div style="display: table-cell">Row 22, Col 1</div>
<div style="display: table-cell">Row 22, Col 2</div>
<div style="display: table-cell">Row 22, Col 3</div>
</div>
<div style="display: table-row">
<div style="display: table-cell">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<div style="display: table-cell">Row 333, Col 3</div>
</div>
</div>
<div style="display: table-column; background: lime"></div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display:table">
<div style="display: table-column; background: yellow"></div>
<div style="display: table-column; background: cyan"></div>
<div style="display: table-column; background: lime"></div>
<div style="display: table-cell">Row 1, Col 1</div>
<div style="display: table-cell">Row 1, Col 2</div>
<div style="display: table-cell">Row 1, Col 3</div>
<div style="display: table-row-group">
<div style="display: table-row">
<div style="display: table-cell">Row 22, Col 1</div>
<div style="display: table-cell">Row 22, Col 2</div>
<div style="display: table-cell">Row 22, Col 3</div>
</div>
<div style="display: table-row">
<div style="display: table-cell">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<div style="display: table-cell">Row 333, Col 3</div>
</div>
</div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display:table">
<div style="display: table-cell">Row 1, Col 1</div>
<div style="display: table-cell">Row 1, Col 2</div>
<div style="display: table-cell">Row 1, Col 3</div>
<div style="display: table-row-group">
<div style="display: table-row">
<div style="display: table-cell">Row 22, Col 1</div>
<div style="display: table-cell">Row 22, Col 2</div>
<div style="display: table-cell">Row 22, Col 3</div>
</div>
<div style="display: table-row">
<div style="display: table-cell">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<div style="display: table-cell">Row 333, Col 3</div>
</div>
</div>
<div style="display: table-column; background: yellow"></div>
<div style="display: table-column; background: cyan"></div>
<div style="display: table-column; background: lime"></div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<!-- The test in the first row might not be correct, depending on spec
clarifications -->
<div style="display: table-row">
<span>Row 1, Col 1</span>
<span>Row 1, Col 2</span>
<span>Row 1, Col 3</span>
</div>
<div style="display: table-row">
<div style="display: block">Row 22, Col 1Row 22, Col 2Row 22, Col 3</div>
</div>
<div style="display: table-row">
<span>Row 333, Col 1</span><span>Row 333, Col 2</span><span>Row 333, Col 3</span>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display: table-row">
<!-- Trailing spaces in the spans needed only if the first test in
infer-cells-1.html is valid -->
<span>Row 1, </span>
<span>Col 1</span>
<div style="display: table-cell">Row 1, Col 2</div>
<div>Row 1, Col 3</div>
</div>
<div style="display: table-row">
<div style="display: table-cell">Row 22, Col 1</div>
<span>Row </span>
<span>22, </span>
<span>Col </span>
<span>2</span>
<div style="display: table-cell">Row 22, Col 3</div>
</div>
<div style="display: table-row">
<div style="display: table-cell">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<span>Row </span>
<span>333, </span>
<span>Col </span>
<span>3</span>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display: table-row">
<!-- Trailing spaces in the spans needed only if the first test in
infer-cells-1.html is valid -->
<span>Row 1, </span>
<span>Col 1</span>
<div style="display: table-cell">Row 1, Col 2</div>
<div style="display: table-row">Row 1, Col 3</div>
</div>
<div style="display: table-row">
<div style="display: table-cell">Row 22, Col 1</div>
<span>Row </span>
<span>22, </span>
<span>Col </span>
<span>2</span>
<div style="display: table-cell">Row 22, Col 3</div>
</div>
<div style="display: table-row">
<div style="display: table-row-group">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<span>Row </span>
<span>333, </span>
<span>Col </span>
<span>3</span>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display: table-row">
<!-- Trailing spaces in the spans needed only if the first test in
infer-cells-1.html is valid -->
<span>Row 1, </span>
<span>Col 1</span>
<div style="display: table-cell">Row 1, Col 2</div>
<div style="display: table">Row 1, Col 3</div>
</div>
<div style="display: table-row">
<div style="display: table-cell">Row 22, Col 1</div>
<span>Row </span>
<span>22, </span>
<span>Col </span>
<span>2</span>
<div style="display: table-cell">Row 22, Col 3</div>
</div>
<div style="display: table-row">
<div style="display: inline-table">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<span>Row </span>
<span>333, </span>
<span>Col </span>
<span>3</span>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display: table-cell">Row 1, Col 1</div>
<div style="display: table-cell">Row 1, Col 2</div>
<div style="display: table-cell">Row 1, Col 3</div>
<div style="display: table-row-group">
<div style="display: table-row">
<div style="display: table-cell">Row 22, Col 1</div>
<div style="display: table-cell">Row 22, Col 2</div>
<div style="display: table-cell">Row 22, Col 3</div>
</div>
<div style="display: table-row">
<div style="display: table-cell">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<div style="display: table-cell">Row 333, Col 3</div>
</div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display:table">
<div style="display: table-cell">Row 1, Col 1</div>
<div style="display: table-cell">Row 1, Col 2</div>
<div style="display: table-cell">Row 1, Col 3</div>
<div style="display: table-row-group">
<div style="display: table-row">
<div style="display: table-cell">Row 22, Col 1</div>
<div style="display: table-cell">Row 22, Col 2</div>
<div style="display: table-cell">Row 22, Col 3</div>
</div>
<div style="display: table-row">
<div style="display: table-cell">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<div style="display: table-cell">Row 333, Col 3</div>
</div>
</div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display: table-footer-group">
<div style="display: table-cell">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<div style="display: table-cell">Row 333, Col 3</div>
</div>
<div style="display: table-row-group">
<div style="display: table-cell">Row 22, Col 1</div>
<div style="display: table-cell">Row 22, Col 2</div>
<div style="display: table-cell">Row 22, Col 3</div>
</div>
<div style="display: table-header-group">
<div style="display: table-cell">Row 1, Col 1</div>
<div style="display: table-cell">Row 1, Col 2</div>
<div style="display: table-cell">Row 1, Col 3</div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display: table-row-group">
<div style="display: table-row">
<div style="display: table-cell">Row 1, Col 1</div>
<div style="display: table-cell">Row 1, Col 2</div>
<div style="display: table-cell">Row 1, Col 3</div>
</div>
</div>
<div style="display: table-cell">Row 22, Col 1</div>
<div style="display: table-cell">Row 22, Col 2</div>
<div style="display: table-cell">Row 22, Col 3</div>
<div style="display: table-row-group">
<div style="display: table-row">
<div style="display: table-cell">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<div style="display: table-cell">Row 333, Col 3</div>
</div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display:table">
<div style="display: table-row-group">
<div style="display: table-row">
<div style="display: table-cell">Row 1, Col 1</div>
<div style="display: table-cell">Row 1, Col 2</div>
<div style="display: table-cell">Row 1, Col 3</div>
</div>
</div>
<div style="display: table-cell">Row 22, Col 1</div>
<div style="display: table-cell">Row 22, Col 2</div>
<div style="display: table-cell">Row 22, Col 3</div>
<div style="display: table-row-group">
<div style="display: table-row">
<div style="display: table-cell">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<div style="display: table-cell">Row 333, Col 3</div>
</div>
</div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display: table-header-group">
<div style="display: table-row">
<div style="display: table-cell">Row 1, Col 1</div>
<div style="display: table-cell">Row 1, Col 2</div>
<div style="display: table-cell">Row 1, Col 3</div>
</div>
</div>
<div style="display: table-row-group">
<div style="display: table-row">
<div style="display: table-cell">Row 22, Col 1</div>
<div style="display: table-cell">Row 22, Col 2</div>
<div style="display: table-cell">Row 22, Col 3</div>
</div>
</div>
<div style="display: table-footer-group">
<div style="display: table-row">
<div style="display: table-cell">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<div style="display: table-cell">Row 333, Col 3</div>
</div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display: table-row-group">
<div style="display: table-row">
<div style="display: table-cell">Row 22, Col 1</div>
<div style="display: table-cell">Row 22, Col 2</div>
<div style="display: table-cell">Row 22, Col 3</div>
</div>
</div>
<div style="display: table-header-group">
<div style="display: table-row">
<div style="display: table-cell">Row 1, Col 1</div>
<div style="display: table-cell">Row 1, Col 2</div>
<div style="display: table-cell">Row 1, Col 3</div>
</div>
</div>
<div style="display: table-footer-group">
<div style="display: table-row">
<div style="display: table-cell">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<div style="display: table-cell">Row 333, Col 3</div>
</div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display: table-footer-group">
<div style="display: table-row">
<div style="display: table-cell">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<div style="display: table-cell">Row 333, Col 3</div>
</div>
</div>
<div style="display: table-row-group">
<div style="display: table-row">
<div style="display: table-cell">Row 22, Col 1</div>
<div style="display: table-cell">Row 22, Col 2</div>
<div style="display: table-cell">Row 22, Col 3</div>
</div>
</div>
<div style="display: table-header-group">
<div style="display: table-row">
<div style="display: table-cell">Row 1, Col 1</div>
<div style="display: table-cell">Row 1, Col 2</div>
<div style="display: table-cell">Row 1, Col 3</div>
</div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display: table-row-group">
<div style="display: table-cell">Row 1, Col 1</div>
<div style="display: block">Row 1, Col 2</div>
<div style="display: table-cell">Row 1, Col 3</div>
</div>
<div style="display: table-row-group">
<div style="display: table-row">
<div style="display: table-cell">Row 22, Col 1</div>
<div style="display: table-cell">Row 22, Col 2</div>
<div style="display: table-cell">Row 22, Col 3</div>
</div>
</div>
<div style="display: table-row-group">
<div style="display: table-row">
<div style="display: table-cell">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<div style="display: table-cell">Row 333, Col 3</div>
</div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<body style="font-family: monospace">
<div style="display: table-row">
<div style="display: table-cell">Row 1, Col 1</div>
<div style="display: table-cell">Row 1, Col 2</div>
<div style="display: table-cell">Row 1, Col 3</div>
</div>
<div style="display: table-row">
<div style="display: table-cell">Row 22, Col 1</div>
<div style="display: table-cell">Row 22, Col 2</div>
<div style="display: table-cell">Row 22, Col 3</div>
</div>
<div style="display: table-row">
<div style="display: table-cell">Row 333, Col 1</div>
<div style="display: table-cell">Row 333, Col 2</div>
<div style="display: table-cell">Row 333, Col 3</div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,21 @@
== infer-first-row.html 3x3-ref.html
== infer-first-row-and-table.html 3x3-ref.html
== infer-second-row.html 3x3-ref.html
== infer-second-row-and-table.html 3x3-ref.html
== infer-table-around-headers-footers-1.html 3x3-ref.html
== infer-table-around-headers-footers-2.html 3x3-ref.html
== infer-table-around-headers-footers-3.html 3x3-ref.html
== infer-rows-inside-rowgroups.html 3x3-ref.html
== infer-table-row-cell.html 3x3-ref.html # Or should it be? Spec is unclear.
== infer-table.html 3x3-ref.html
!= 3-tables-ref.html 3x3-ref.html
== blocks-divide-tables-1.html 3-tables-ref.html
== blocks-divide-tables-2.html 3-tables-ref.html
== infer-cells-1.html 3-tables-ref.html
== infer-cells-2.html 3x3-ref.html
== infer-cells-3.html 3x3-ref.html
== infer-cells-4.html 3x3-ref.html
== cols-test-1.html 3x3-cols-ref.html
== cols-test-2.html 3x3-cols-ref.html
== cols-test-3.html 3x3-cols-ref.html
== white-space-1.html white-space-1-ref.html

Просмотреть файл

@ -0,0 +1,6 @@
<!DOCTYPE HTML>
<html>
<body>
a bc d
</body>
</html>

Просмотреть файл

@ -0,0 +1,11 @@
<!DOCTYPE HTML>
<html>
<body>
<div style="display: inline;">
<span>a</span>
<span style="display: table-cell">b</span>
<span style="display: table-cell">c</span>
<span>d</span>
</div>
</body>
</html>