HTML-2-CSS Mapping

Checks that browsers implement properly the html2css stylesheet (rules without attributes)


You should see a 5 2px blue square here, separated by 2px each:

Because of the lack of the table element, border-spacing is 0; padding on each td should be 1px on each side. 1px*2*5=10px.


You should see a 10px blue square here:

Because of the lack of the table element, border-spacing is 0; padding on each td should be 1px on each side. 1px*2*5=10px.


You should see a 12px blue square here:

The table has the background; x-td elements have no padding, only the border-spacing remains. 6*2px=12px.


You shouldn't see anything here:

The table has the background but is empty; it does not apply border-spacing in this case.

Summary

Harness status: OK

Found 4 tests

Details

ResultTest NameMessage
PassHTML -> CSS Mapping is applied correctly on proper table markup (border-spacing, padding)
Asserts run
Pass
assert_equals(22, 22)
    at  /css/css-tables/html-to-css-mapping-1.html:40:5
PassHTML -> CSS Mapping is applied correctly on improper table markup (no table => no border-spacing, but padding)
Asserts run
Pass
assert_equals(10, 10)
    at  /css/css-tables/html-to-css-mapping-1.html:40:5
FailHTML -> CSS Mapping is applied correctly on improper table markup (no td => border-spacing, but no padding)assert_equals: expected 12 but got 4
Error
    at get_stack (https://www2.wpt.live/resources/testharness.js:4567:21)
    at new AssertionError (https://www2.wpt.live/resources/testharness.js:4560:22)
    at assert (https://www2.wpt.live/resources/testharness.js:4544:19)
    at assert_equals (https://www2.wpt.live/resources/testharness.js:1543:9)
    at Test.assert_wrapper (https://www2.wpt.live/resources/testharness.js:1463:30)
    at Test.<anonymous> (https://www2.wpt.live/resources/testharness.js:1182:35)
    at Test.step (https://www2.wpt.live/resources/testharness.js:2638:25)
    at test (https://www2.wpt.live/resources/testharness.js:633:30)
    at https://www2.wpt.live/resources/testharness.js:1180:21
    at forEach (https://www2.wpt.live/resources/testharness.js:4659:26)
Asserts run
Fail
assert_equals(4, 12)
Error
PassHTML -> CSS Mapping is applied correctly on empty table markup (no content => no border-spacing, no padding)
Asserts run
Pass
assert_equals(0, 0)
    at  /css/css-tables/html-to-css-mapping-1.html:40:5