From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../tests/css/css-tables/column-track-merging.html | 278 +++++++++++++++++++++ 1 file changed, 278 insertions(+) create mode 100644 testing/web-platform/tests/css/css-tables/column-track-merging.html (limited to 'testing/web-platform/tests/css/css-tables/column-track-merging.html') diff --git a/testing/web-platform/tests/css/css-tables/column-track-merging.html b/testing/web-platform/tests/css/css-tables/column-track-merging.html new file mode 100644 index 0000000000..6dba9e6f60 --- /dev/null +++ b/testing/web-platform/tests/css/css-tables/column-track-merging.html @@ -0,0 +1,278 @@ + +Column track merging + + + + + + +

Column merging investigation

+Empty columns is a column that has no originating cells +

Table standard discusses this under "track merging".

+ +

Compatibility

+
  • Edge17 has a bug where width of a colspanned cell always includes cell width + width of border spacing. It should be max(cell width, border spacing)
  • +
  • Safari matches Chrome Legacy. TD-originated columns are always merged.
  • +
  • Firefox follows the standard, but has a few bugs.
  • +
    + +

    TD merging

    + +
    Auto table, and TD.colspan=10
    +  FF/Chrome Legacy/Safari: Standard. Tracks merge.
    +  Edge17: Tracks do not merge. Wide cell is 180px (9 * border spacing)
    +
    + + + + + + + + + + +
    auto
    + +
    Auto table(400px), and TD.colspan=10
    +  FF/Chrome Legacy/Safari/Edge17: Standard. Tracks merge. Colspan cell grows because it is unconstrained.
    +
    + + + + + + + + + + +
    auto 400px
    + +
    Auto table(130px), and TD.colspan=10
    +  FF/Chrome Legacy/Safari: Standard. Tracks merge. Colspan cell shrinks to min width becuase it is unconstrained.
    +  Edge17: Non-compliant, buggy. Wide cell too wide, narrow cell disappears.
    +
    + + + + + + + + + + +
    auto 130px
    + +
    Fixed(400px) table, and TD.colspan=10
    +  Chrome/Safari: Non-compliant. Tracks merge. Cells are the same size, fixed algo distributes extra width evenly.
    +  Firefox: Standard.
    +  Edge17: Standard, buggy. Wide cell too wide. Edge's bug is that it computes max width as (width + border_spacing) instead of max(width, border_spacing).
    +
    + + + + + + + + + + +
    fixed 400px
    + +
    Fixed(130px) table, and TD.colspan=10
    +  Chrome/Safari: Non-compliant.Tracks merge, cells same size.
    +  Firefox: Standard + buggy. Table does not grow.
    +  Edge17: Standard + buggy. Wide cell too wide.
    +
    + + + + + + + + + + +
    fixed 130px
    + +

    COL merging. Same tests with COL span=10 replacing TD

    + +
    Auto table
    +  FF/Chrome Legacy/Safari, Edge17: Standard. wide cell is 50px, tracks do merge.
    +
    + + ++ + + + + + + + +
    auto
    + +
    Auto table(400px)
    +  FF/Chrome Legacy/Safari, Edge17: Standard. Both cells grow the same because unconstrained.
    +
    + + ++ + + + + + + + +
    auto 400px
    + +
    Auto table(130px)
    +  FF/Chrome Legacy/Safari, Edge17: Standard. Both cells shrink.
    +
    + + ++ + + + + + + + +
    auto 130px
    + +
    Fixed(400px) table
    +  Chrome/Safari,Firefox: Standard.
    +  Edge17: Buggy. Fixed cells grow to fill table.
    +
    + + ++ + + + + + + + +
    fixed 400px
    + +
    Fixed(130px) table
    +  Chrome/Safari: Standard, very buggy. Non-collapsed columns shrink to single border spacing.
    +  Firefox: Standard.
    +  Edge17: Non-compliant, collapses columns.
    +
    + ++ + + + + + + + + +
    fixed 130px
    + +

    COL merging when COL has specified width.

    + +
    • Chrome Legacy/Edge17/Safari: non-compliant, merge COLs with specified widths. +
    • Firefox: Standard, unless COL width is 0px. Buggy, does not include border-spacing around columns.
    +
    Auto table, COL width 30px.
    +  Chrome Legacy/Edge17/Safari: non-compliant, merge.
    +  Firefox: Standard, buggy. does not include border-spacing around columns.
    +
    + + ++ + + + + + + + +
    auto col 30px
    + +
    Auto table, COL width 5%.
    +  Chrome Legacy/Edge17/Safari: non-compliant, merge.
    +  Firefox: Standard, buggy. does not include border-spacing around columns.
    +
    + + ++ + + + + + + + +
    auto col 10%
    + +
    Auto table, COL width 0px.
    +  Everyone: merges COL
    +
    + + ++ + + + + + + + +
    auto col 0px
    + + +
    + + + + + -- cgit v1.2.3