Skip to content

[css-borders][css-tables] The rowspan cell bottom-border takes the color of the last border shared adjacent cell #13417

@karlcow

Description

@karlcow

I just fixed a difference of behavior in between WebKit and Blink/Gecko.
I will be exporting to WPT the testcase.

Before on Safari

Image

On Chrome/Firefox. And soon on Safari

Image

The 3 rendering engines will behave the same.

The markup.

<style>
  table {
    border-collapse: collapse;
  }

  td {
    width: 100px;
    height: 50px;
    border: 1px solid black;
  }

  /* Different border colors for each row */
  #test tr:nth-child(1) {
    border-bottom: 5px solid blue;
  }

  #test tr:nth-child(2) {
    border-bottom: 5px solid green;
  }

  #test tr:nth-child(3) {
    border-bottom: 5px solid red;
  }
</style>
<p>The cell with rowspan=3 should have a red bottom border (from row 3), not blue (from row 1).</p>
<table id="test">
  <tr>
    <td rowspan="3">Rowspan 3</td>
    <td>Cell B</td>
  </tr>
  <tr>
    <td>Cell C</td>
  </tr>
  <tr>
    <td>Cell D</td>
  </tr>
</table>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions