danfickle / danfickle/openhtmltopdf

Table with border-color used in conjunction with border="1", only outer border gets that color

Open
#903 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.2k
Forks
423
PR merge metrics
No merged PRs in 30d

Description

You can try this in the [sandbox](https://sandbox.openhtmltopdf.com/) :

```

table {
border-collapse: collapse;
border-color: red;
}

A1A2
A1A2

```

This is the result :
![Result in sandbox](https://user-images.githubusercontent.com/97475842/210541054-e77924a5-690b-4723-9c2d-4ca1f72307f8.png)

Whereas in the browser, you get :
![Result in browser](https://user-images.githubusercontent.com/97475842/210541478-a0a96eb0-f6db-48eb-b9da-9874c060736b.png)

An obvious fix is to apply that styling to each cell, but it would be nice if the framework handled it. Additionally, it's harder to fix it for a variety of edge cases where the table's rows and cells have custom border styles as well, e.g. :

```

table {
border-collapse: collapse;
}

Column 1
Column 2
Column 3
Column 4

1
2
3
4

5
6
7
8

9
10
11
12

```

Gives this in the browser and in the sandbox, respectively :

![Browser version](https://user-images.githubusercontent.com/97475842/210788644-a235bdd3-930a-4276-a132-da6e66c972aa.png)
![Sandbox version](https://user-images.githubusercontent.com/97475842/210788687-bb402f6f-c79a-4e40-8b7a-41af2f6a1dcd.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.