You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chromium and Webkit sets a grey border color because it provided interoperability with old versions of Internet Explorer. The rule was previously part of the HTML spec but was removed in 2019: whatwg/html#4398
The text was updated successfully, but these errors were encountered:
Description
If I am writing a document with tables, I would like my table borders to be the same color as my text (by default):
This works in Firefox but in Chrome, Edge, and Safari it looks like this:
It would be really nice if engines could standardize this behavior.
WPT tests to include
This issue is tested by the following two tests that should be included in Interop 2025:
Specification
border-color
's initial value should becurrentcolor
:https://www.w3.org/TR/css-backgrounds-3/#border-color
There are no recommended stylesheets that override that value for tables:
https://html.spec.whatwg.org/multipage/rendering.html#tables-2
Additional Signals
Workarounds
Many websites include a CSS reset that forces the behavior seen in Firefox. Here are two examples of popular CSS reset libraries doing that:
Browser bugs
There are long standing bugs to fix this issue for both engines:
border-color:grey
, which doesn't quite match spec & may be historical cruftborder-color:grey
, whi...Historical note
Chromium and Webkit sets a grey border color because it provided interoperability with old versions of Internet Explorer. The rule was previously part of the HTML spec but was removed in 2019: whatwg/html#4398
The text was updated successfully, but these errors were encountered: