Open atjn opened 1 month ago
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.
This issue is tested by the following two tests that should be included in Interop 2025:
border-color's initial value should be currentcolor: https://www.w3.org/TR/css-backgrounds-3/#border-color
border-color
currentcolor
There are no recommended stylesheets that override that value for tables: https://html.spec.whatwg.org/multipage/rendering.html#tables-2
Many websites include a CSS reset that forces the behavior seen in Firefox. Here are two examples of popular CSS reset libraries doing that:
There are long standing bugs to fix this issue for both engines:
border-color:grey
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: https://github.com/whatwg/html/pull/4398
Related proposal: #727
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-colorThere 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: https://github.com/whatwg/html/pull/4398