Skip to content

Incorrect references for CSS2 table-overflow reftests s-11-1-1b-002 through 004 #62635

Open

Description

@leecbaker

Three CSS2 table-overflow reftests appear to have incorrect references:

  • s-11-1-1b-002.html
  • s-11-1-1b-003.html
  • s-11-1-1b-004.html

The test cases themselves exercise useful CSS 2.2 behaviour, but their current references cause conforming output to fail visual comparison.

Tests 003 and 004

s-11-1-1b-003.html and s-11-1-1b-004.html test that overflow:auto and overflow:scroll, respectively, behave as visible on table boxes.

Both currently declare:

<link rel="match" href="s-11-1-1b-001-ref.html">

That reference contains a top caption with a 10px bottom margin. Its square is therefore positioned 25px below the upward-overflow result being tested.

The directory already contains s-11-1-1b-003-ref.html, which reproduces the target geometry using margin-top:-15px. Comparing test 003 against this reference should produce an exact visual match.

Tests 003 and 004 produce identical rendering, as expected, so both can use reference s-11-1-1b-003-ref.html.

Perhaps this is a copy-paste error.

Test 002

s-11-1-1b-002.html tests that overflow:hidden on a table clips at the table box rather than the caption-containing table wrapper.

The target uses a relatively positioned child that overflows downward into space associated with a bottom caption. Correct clipping leaves a 20×20 black square and removes the overflowing red border.

However, s-11-1-1b-002-ref.html contains:

table {
  overflow: hidden;
  border-spacing: 0;
  margin-top: 60px;
}

The target has no equivalent table margin. This places the reference square substantially below the target and makes the comparison fail independently of overflow behavior.

Removing margin-top:60px from the reference produces an exact visual match in my test.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions