Skip to content

[css-table-3][css-backgrounds] tr background-color when td cell has a border-radius #11734

@karlcow

Description

@karlcow

Should the tr element background-color be painted or not in this case?
Should it be specified in (is it already?)
https://drafts.csswg.org/css-backgrounds/
or in https://drafts.csswg.org/css-tables-3/

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

  • Safari and Chrome do not show the background-color of the tr element
  • Firefox does show the background-color (pink) of the tr element

code

<style>
table {background-color: gold;}
tr    {background-color: pink;}
td    {background-color: rgb(76, 250, 188);}
td {
  width:50px;
  height:50px;
  border-color: red;
  border-width: 10px;
  border-radius: 30px;
  border-style: solid;}
</style>
<table>
  <tr><td>A1</td><td>A2</td><td>A3</td></tr>
  <tr><td>B1</td><td>B2</td><td>B3</td></tr>
  <tr><td>C1</td><td>C2</td><td>C3</td></tr>
</table>

rendering

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions