From Wikipedia, the free encyclopedia
Tables on the right are autocollapse
.Only the green cells should be visible on the left after clicking [hide] and there should be no red cells visible on the right until clicking [show].
Default: collapse all ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Default: collapse all ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
The following tests mostly currently require custom code .
Tests for collapsible rows[ edit ]
Collapse row 2 only ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Collapse row 2 only ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Do not collapse row 3 ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Do not collapse row 3 ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Tests for collapsible columns[ edit ]
Collapse column B only ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Collapse column B only ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Do not collapse first column ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Do not collapse first column ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Column A is not collapsible, column B is explicitly collapsible ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Column A is not collapsible, column B is explicitly collapsible ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Column A is explicitly collapsible, column B is not collapsible ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Column A is explicitly collapsible, column B is not collapsible ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Tests for collapsible rows and columns[ edit ]
Collapse column B and row 2, cell B2 is double-collapsible ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Collapse column B and row 2, cell B2 is double-collapsible ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Tests with incomplete tables[ edit ]
Collapse all ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Row 3
Data A3
Collapse all ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Row 3
Data A3
Collapse column B only ✗ Fail
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Row 3
Data A3
Collapse column B only ✗ Fail
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Row 3
Data A3
Collapse column C only ✗ Fail
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Row 3
Data A3
Collapse column B only ✗ Fail
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A2
Data B2
Row 3
Data A3
Rowspan, collapse all ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1–2
Data C1
Row 2
Data A2
Data C2
Row 3
Data A3
Data B3
Data C3
Rowspan, collapse all ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1–2
Data C1
Row 2
Data A2
Data C2
Row 3
Data A3
Data B3
Data C3
Rowspan, collapse that column ✗ Fail
Col A
Col B
Col C
Row 1
Data A1
Data B1–2
Data C1
Row 2
Data A2
Data C2
Row 3
Data A3
Data B3
Data C3
Rowspan, collapse that column ✗ Fail
Col A
Col B
Col C
Row 1
Data A1
Data B1–2
Data C1
Row 2
Data A2
Data C2
Row 3
Data A3
Data B3
Data C3
Rowspan header, collapse these rows ✗ Fail
Col A
Col B
Col C
Row 1–2
Data A1
Data B1
Data C1
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Rowspan header, collapse these rows ✗ Fail
Col A
Col B
Col C
Row 1–2
Data A1
Data B1
Data C1
Data A2
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Colspan, collapse all ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A–B2
Data C2
Row 3
Data A3
Data B3
Data C3
Colspan, collapse all ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A–B2
Data C2
Row 3
Data A3
Data B3
Data C3
Colspan, collapse that row ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A–B2
Data C2
Row 3
Data A3
Data B3
Data C3
Colspan, collapse that row ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A–B2
Data C2
Row 3
Data A3
Data B3
Data C3
Colspan, collapse all but that row ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A–B2
Data C2
Row 3
Data A3
Data B3
Data C3
Colspan, collapse all but that row ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A–B2
Data C2
Row 3
Data A3
Data B3
Data C3
Colspan, collapse those columns ✗ Fail
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A–B2
Data C2
Row 3
Data A3
Data B3
Data C3
Colspan, collapse those columns ✗ Fail
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A–B2
Data C2
Row 3
Data A3
Data B3
Data C3
Colspan, collapse all but those columns ✗ Fail
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A–B2
Data C2
Row 3
Data A3
Data B3
Data C3
Colspan, collapse all but those columns ✗ Fail
Col A
Col B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A–B2
Data C2
Row 3
Data A3
Data B3
Data C3
Colspan header, collapse that column ✗ Fail
Col A–B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A1
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Colspan header, collapse that column ✗ Fail
Col A–B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A1
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Colspan header, collapse the other column ✗ Fail
Col A–B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A1
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Colspan header, collapse the other column ✗ Fail
Col A–B
Col C
Row 1
Data A1
Data B1
Data C1
Row 2
Data A1
Data B2
Data C2
Row 3
Data A3
Data B3
Data C3
Tests with colspan
and rowspan
[ edit ]
Colspan + rowspan, collapse all ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1–2
Data C1
Row 2
Data A2
Data C2
Row 3
Data A–B3
Data C3
Colspan + rowspan, collapse all ✓ Pass
Col A
Col B
Col C
Row 1
Data A1
Data B1–2
Data C1
Row 2
Data A2
Data C2
Row 3
Data A–B3
Data C3
Colspan + rowspan, collapse that row and column ✗ Fail
Col A
Col B
Col C
Row 1
Data A1
Data B1–2
Data C1
Row 2
Data A2
Data C2
Row 3
Data A–B3
Data C3
Colspan + rowspan, collapse that row and column ✗ Fail
Col A
Col B
Col C
Row 1
Data A1
Data B1–2
Data C1
Row 2
Data A2
Data C2
Row 3
Data A–B3
Data C3