v149 · shipped · interop · css
Remove explicit border color UA stylesheet rule for tables
Chrome 149 removes an erroneous border-color: gray rule from the browser's built-in (UA) stylesheet for the <table> element, aligning with the HTML specification and matching the behaviour of Firefox and Safari. Table borders now default to currentColor instead of gray.
at a glance
| Shipped in | Chrome 149 |
|---|---|
| Status | Enabled by default |
| Type | Interoperability fix / web-facing change |
| ChromeStatus | 5077341928816640 — Remove explicit border color UA stylesheet rule for tables |
what changed
Chrome's UA stylesheet previously included:
/* OLD — Chrome UA stylesheet, pre-149 */
table {
border-color: gray;
}
This rule is not in the HTML specification. Neither Firefox nor Safari have it. It caused table borders to be gray in Chrome even when authors expected them to inherit currentColor. Chrome 149 removes the rule, so tables now match the specified and cross-browser behaviour.
impact on your CSS
If you have a <table> with border-collapse: collapse or explicit borders but have not set border-color explicitly, the border colour will change from gray to currentColor (matching your text colour or whatever color is inherited). In most cases this is the desired behaviour and matches what Firefox and Safari already render.
Sites that may be affected
- Tables whose borders were visually gray only because of Chrome's UA rule, and no author CSS set
border-color. - Sites that relied on the gray default for data tables without explicit styling.
Fix if needed
If your design requires gray borders, add an explicit rule:
table {
border-color: gray; /* now required if you want gray borders */
}
Best practice
Always set border-color explicitly when styling table borders — that way your tables look consistent across Chrome, Firefox, and Safari regardless of UA stylesheet differences.
browser support
| Browser | Behaviour |
|---|---|
| Chrome 149+ | Table borders default to currentColor (no UA border-color rule) |
| Chrome < 149 | Table borders defaulted to gray via UA stylesheet |
| Firefox | Table borders default to currentColor (same as Chrome 149+) |
| Safari | Table borders default to currentColor (same as Chrome 149+) |