Skip to content

Commit 5e2d9c2

Browse files
table border-color currentColor (#223)
I could not find any source that border-color should be inherited. Firefox, which is not listed as affected, uses "currentColor" and not "inherit". Co-authored-by: Tobias Buschor <[email protected]>
1 parent 3046797 commit 5e2d9c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sanitize.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,13 @@
186186

187187
/**
188188
* 1. Collapse border spacing in all browsers (opinionated).
189-
* 2. Correct table border color inheritance in all Chrome, Edge, and Safari.
189+
* 2. Correct table border color in Chrome, Edge, and Safari.
190190
* 3. Remove text indentation from table contents in Chrome, Edge, and Safari.
191191
*/
192192

193193
:where(table) {
194194
border-collapse: collapse; /* 1 */
195-
border-color: inherit; /* 2 */
195+
border-color: currentColor; /* 2 */
196196
text-indent: 0; /* 3 */
197197
}
198198

0 commit comments

Comments
 (0)