From 234098817f0be40bb20e029b4434698e160266ab Mon Sep 17 00:00:00 2001 From: Aleks Totic Date: Wed, 28 Apr 2021 01:11:17 -0700 Subject: [PATCH] [TablesNG] TBODY height distribution tests At the time these tests were written, there was no spec at all. Change-Id: Id04a0a9159f0801c5507828d1519c1abee3f8060 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2851582 Commit-Queue: Aleks Totic Reviewed-by: David Grogan Cr-Commit-Position: refs/heads/master@{#876950} --- .../tbody-height-redistribution.html | 144 ++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 css/css-tables/tentative/tbody-height-redistribution.html diff --git a/css/css-tables/tentative/tbody-height-redistribution.html b/css/css-tables/tentative/tbody-height-redistribution.html new file mode 100644 index 00000000000000..61b304ff0a2efb --- /dev/null +++ b/css/css-tables/tentative/tbody-height-redistribution.html @@ -0,0 +1,144 @@ + +TBODY redistribution + + + + + + + +
+

TBODY/THEAD/TFOOT height redistribution.

+
  • FF passes most of the tests. +
  • Legacy Chrome does not distribute TBODY height to rows. +
  • At the time this test was written, there was no spec. Currently, spec is in the process of being written. + +

    1) Empty row group's size is 0 with collapsed borders

    + + + + +
    +

    2) Empty row group's size is 0 with separate borders.

    + + + + +
    +

    3) Row group height is redistributed to unconstrained rows in proportion to their size.

    + + + + + + + + + +
    0,0
    0,0
    +

    4) Constrained fixed rows do not grow if there are unconstrained rows

    + + + + + + + + + +
    0,1
    +

    5) Constrained percentage are resolved against row group height.

    + + + + + + + + + + + + +
    0,0
    0,0
    0,2
    +

    6) Row group height is treated as min-height.

    + + + + + + +
    0,0
    +

    7) Constrained/unconstrained mix: row group height is distributed to unconstrained cells.

    + + + + + + + +
    0,0
    0,1
    0,2
    0,3
    +

    8) Unconstrained empty rows grow to fill table if all other rows are constrained. Not in FF.

    + + + + + + +
    0,0
    0,1
    +
    + + + + + + +
    0,1
    0,2
    +

    9) Empty section's height is ignored.

    + + + +
    +

    10) Section with empty rows is not considered empty.

    +

    In FF, empty section height is 100, but table's height is 0?

    + + + + + + +
    +

    11) Mixed constrained and unconstrained empty rows: only unconstrained rows grow.

    + + + + + + +
    +
  • +