HTML5 Table Formatting algorithm (row/column grid computation)

Verifies how browsers deal with implicit tracks from which no cell does originate


This should be a 100px by 100px blue square:

The table grid is 1x1, so the table is not empty and follows step 3A of the table layout algorithm (which adds anonymous cell boxes)

The consecutive tracks were merged together because they are not all defined explicitely by a table-column or a table-row, and share the same set of cells

Two 25px border-spacing causes the addition of 50px (track is 50x50)


This should be a 100px by 100px blue square:

The table grid is 1x1, so the table is not empty and follows step 3A of the table layout algorithm (which adds anonymous cell boxes)

The consecutive tracks were merged together because they are not all defined explicitely by a table-column or a table-row, and share the same set of cells

Two 25px border-spacing causes the addition of 50px (track is 50x50)


This should be a 75px by 75px blue square:

The table grid is 2x2, so the table is not empty and follows step 3A of the table layout algorithm (which adds anonymous cell boxes)

The consecutive tracks were not merged together because they are all defined explicitely by a table-column or a table-row

Three 25px border-spacing causes the addition of 75px (tracks are 0x0)


This should be a 100px by 100px blue square:

The table grid is 2x2, so the table is not empty and follows step 3A of the table layout algorithm (which adds anonymous cell boxes)

The consecutive tracks were not merged together because they are all defined explicitely by a table-column or a table-row

Three 25px border-spacing causes the addition of 75px (tracks are 12.5x12.5)

Summary

Harness status: OK

Found 8 tests

Details

ResultTest NameMessage
FailControl test for table-cell padding and border-spacing, etc (width)assert_equals: expected 100 but got 50
Error
    at get_stack (https://www1.wpt.live/resources/testharness.js:4575:21)
    at new AssertionError (https://www1.wpt.live/resources/testharness.js:4568:22)
    at assert (https://www1.wpt.live/resources/testharness.js:4552:19)
    at assert_equals (https://www1.wpt.live/resources/testharness.js:1547:9)
    at Test.assert_wrapper (https://www1.wpt.live/resources/testharness.js:1467:30)
    at Test.<anonymous> (https://www1.wpt.live/resources/testharness.js:1182:35)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at https://www1.wpt.live/resources/testharness.js:1180:21
    at forEach (https://www1.wpt.live/resources/testharness.js:4667:26)
Asserts run
Fail
assert_equals(50, 100)
Error
FailControl test for table-cell padding and border-spacing (height)assert_equals: expected 100 but got 19
Error
    at get_stack (https://www1.wpt.live/resources/testharness.js:4575:21)
    at new AssertionError (https://www1.wpt.live/resources/testharness.js:4568:22)
    at assert (https://www1.wpt.live/resources/testharness.js:4552:19)
    at assert_equals (https://www1.wpt.live/resources/testharness.js:1547:9)
    at Test.assert_wrapper (https://www1.wpt.live/resources/testharness.js:1467:30)
    at Test.<anonymous> (https://www1.wpt.live/resources/testharness.js:1182:35)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at https://www1.wpt.live/resources/testharness.js:1180:21
    at forEach (https://www1.wpt.live/resources/testharness.js:4667:26)
Asserts run
Fail
assert_equals(19, 100)
Error
PassAnonymous consecutive columns spanned by the same set of cells are merged
Asserts run
Pass
assert_equals(100, 100)
    at document.body.onload ( /css/css-tables/html5-table-formatting-3.html:64:9)
FailAnonymous consecutive rows spanned by the same set of cells are mergedassert_equals: expected 100 but got 19
Error
    at get_stack (https://www1.wpt.live/resources/testharness.js:4575:21)
    at new AssertionError (https://www1.wpt.live/resources/testharness.js:4568:22)
    at assert (https://www1.wpt.live/resources/testharness.js:4552:19)
    at assert_equals (https://www1.wpt.live/resources/testharness.js:1547:9)
    at Test.assert_wrapper (https://www1.wpt.live/resources/testharness.js:1467:30)
    at Test.<anonymous> (https://www1.wpt.live/resources/testharness.js:1182:35)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at https://www1.wpt.live/resources/testharness.js:1180:21
    at forEach (https://www1.wpt.live/resources/testharness.js:4667:26)
Asserts run
Fail
assert_equals(19, 100)
Error
FailExplicitely-defined consecutive columns spanned by the same set of cells are not mergedassert_equals: expected 75 but got 50
Error
    at get_stack (https://www1.wpt.live/resources/testharness.js:4575:21)
    at new AssertionError (https://www1.wpt.live/resources/testharness.js:4568:22)
    at assert (https://www1.wpt.live/resources/testharness.js:4552:19)
    at assert_equals (https://www1.wpt.live/resources/testharness.js:1547:9)
    at Test.assert_wrapper (https://www1.wpt.live/resources/testharness.js:1467:30)
    at Test.<anonymous> (https://www1.wpt.live/resources/testharness.js:1182:35)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at https://www1.wpt.live/resources/testharness.js:1180:21
    at forEach (https://www1.wpt.live/resources/testharness.js:4667:26)
Asserts run
Fail
assert_equals(50, 75)
Error
FailExplicitely-defined consecutive rows spanned by the same set of cells are not mergedassert_equals: expected 75 but got 19
Error
    at get_stack (https://www1.wpt.live/resources/testharness.js:4575:21)
    at new AssertionError (https://www1.wpt.live/resources/testharness.js:4568:22)
    at assert (https://www1.wpt.live/resources/testharness.js:4552:19)
    at assert_equals (https://www1.wpt.live/resources/testharness.js:1547:9)
    at Test.assert_wrapper (https://www1.wpt.live/resources/testharness.js:1467:30)
    at Test.<anonymous> (https://www1.wpt.live/resources/testharness.js:1182:35)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at https://www1.wpt.live/resources/testharness.js:1180:21
    at forEach (https://www1.wpt.live/resources/testharness.js:4667:26)
Asserts run
Fail
assert_equals(19, 75)
Error
FailExplicitely-defined consecutive columns spanned by the same set of cells are not merged, and cells span across border-spacingassert_equals: expected 12.5 but got 0
Error
    at get_stack (https://www1.wpt.live/resources/testharness.js:4575:21)
    at new AssertionError (https://www1.wpt.live/resources/testharness.js:4568:22)
    at assert (https://www1.wpt.live/resources/testharness.js:4552:19)
    at assert_equals (https://www1.wpt.live/resources/testharness.js:1547:9)
    at Test.assert_wrapper (https://www1.wpt.live/resources/testharness.js:1467:30)
    at Test.<anonymous> (https://www1.wpt.live/resources/testharness.js:1182:35)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at https://www1.wpt.live/resources/testharness.js:1180:21
    at forEach (https://www1.wpt.live/resources/testharness.js:4667:26)
Asserts run
Fail
assert_equals(0, 12.5)
Error
FailExplicitely-defined consecutive rows spanned by the same set of cells are not merged, and cells span across border-spacingassert_equals: expected 12.5 but got 19
Error
    at get_stack (https://www1.wpt.live/resources/testharness.js:4575:21)
    at new AssertionError (https://www1.wpt.live/resources/testharness.js:4568:22)
    at assert (https://www1.wpt.live/resources/testharness.js:4552:19)
    at assert_equals (https://www1.wpt.live/resources/testharness.js:1547:9)
    at Test.assert_wrapper (https://www1.wpt.live/resources/testharness.js:1467:30)
    at Test.<anonymous> (https://www1.wpt.live/resources/testharness.js:1182:35)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at https://www1.wpt.live/resources/testharness.js:1180:21
    at forEach (https://www1.wpt.live/resources/testharness.js:4667:26)
Asserts run
Fail
assert_equals(19, 12.5)
Error