-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML spec has CSS rule that is arbitrary and doesn't match reality: table, td, th { border-color: gray; } #4391
Comments
border-color
CSS rule that is arbitrary and doesn't match reality
Here's a slightly more comprehensive test: In this testcase:
This testcase clearly demonstrates the following:
|
I filed https://bugs.chromium.org/p/chromium/issues/detail?id=935708 and https://bugs.webkit.org/show_bug.cgi?id=195015 on the Chrome/Safari (Blink/WebKit) magic behavior for |
...and I filed https://bugs.chromium.org/p/chromium/issues/detail?id=935729 and https://bugs.webkit.org/show_bug.cgi?id=195016 to remove the Chrome/Safari (Blink/Webkit) And I'll plan on removing Firefox's quirks-mode-specific |
So assuming the other implementers do not object, all that remains here is removing |
That's the only change I'm aware of needing here, yeah.
Not yet, but I'm planning on including some in https://bugzilla.mozilla.org/show_bug.cgi?id=1530048 |
Here are my WPT testcases: reference case: https://dholbert.github.io/tests/tables/table-border-3-ref.html (As far as I know, these standards/quirks-mode testcases only differ from each other in current Firefox (until I land bug 1530048). No other browser cares about quirks vs. standards mode here.) |
Thanks for taking care of all the hard work @dholbert! If anyone wants to take on a PR against the HTML Standard |
The HTML spec requires the following CSS rule for table rendering:
https://html.spec.whatwg.org/multipage/rendering.html#tables-2
However, in practice, no browser actually implements that. Testcase:
https://bug1530048.bmoattachments.org/attachment.cgi?id=9046083
Observations from viewing that testcase in various engines:
border-color
at its initial value (currentcolor
, i.e. black) fortable
,td
, andth
.table
, but not fortd
orth
, which makes for weird/inconsistent results if you make borders show up on all of these elements as shown in my testcase.Perhaps we should just remove this rule from the spec, because nobody implements it as-written? I imagine it was for backwards-compatibility at some point, but clearly the web doesn't depend on it.
[1] Note: Firefox technically has a more-extreme version of the HTML spec's rule, but it only applies in quirks mode.
The text was updated successfully, but these errors were encountered: