Skip to content

[css-tables-3] How table borders should be painted at the corner? (border-collapse: collapse) #13406

@karlcow

Description

@karlcow

Currently the painting at the corner of collapse borders differs in between Chrome/Safari and Firefox.

This is easily visible with larger borders.
Image

As you can see, chrome and Safari adds the opacity on top of each other, while Firefox doesn't have this rendering because the corners are painted in diagonal (like a real wood painting frame assemblage)

But which is correct?
I didn't find anything in the specification explaining how it should be done.
https://drafts.csswg.org/css-tables-3/#conflict-resolution-for-collapsed-borders

https://codepen.io/webcompat/pen/XJKVezR

<style>
  td {
    width: 50px;
    height: 50px
  }

  table {
    border-collapse: collapse;
    margin: 10px
  }
</style>
<table>
  <tbody>
    <tr>
      <td style="
           border-left: 20px solid rgba(0, 127, 0, 0.5); 
           border-bottom: 20px solid rgba(0, 127, 0, 0.5);"></td>
    </tr>
  </tbody>
</table>

<table>
  <tbody>
    <tr>
      <td style="
           border-left: 20px solid rgba(0, 127, 0, 0.5); 
           border-bottom: 20px solid rgba(127, 0, 0, 0.5);"></td>
    </tr>
  </tbody>
</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