HTML5 Table Formatting algorithm (row/column grid computation)

Verifies how browser define and act on empty tables


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

The table grid is 0x0, so the table is empty and follows step 3B of the table layout algorithm


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

The table grid is 2x0, so the table is empty and follows step 3B of the table layout algorithm


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

The table grid is 0x1, so the table is empty and follows step 3B of the table layout algorithm


This should be a 200px by 100px blue rectangle:

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


This should be a 200px by 100px half-blue half-orange rectangle:

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


This should be a 200px by 100px orange rectangle:

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

Summary

Harness status: OK

Found 6 tests

Details

ResultTest NameMessage
FailEmpty tables can still get a lsyoutassert_equals: expected 50 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, 50)
Error
FailEmpty tables do not take table-columns into accountassert_equals: expected 50 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, 50)
Error
FailEmpty tables do not take table-rows into accountassert_equals: expected 50 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, 50)
Error
FailTable-columns are taken into account after missing cells are generated (empty line)assert_equals: expected 200 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, 200)
Error
FailTable-columns are taken into account after missing cells are generated (partially empty line)assert_equals: expected 200 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, 200)
Error
FailTable-columns are taken into account after missing cells are generated (non-empty line)assert_equals: expected 200 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, 200)
Error