[Webkit-unassigned] [Bug 195016] New: WebKit has special UA stylesheet rule to give tables `border-color:grey`, which doesn't quite match spec & may be historical cruft
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 25 14:19:55 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=195016
Bug ID: 195016
Summary: WebKit has special UA stylesheet rule to give tables
`border-color:grey`, which doesn't quite match spec &
may be historical cruft
Product: WebKit
Version: Safari 12
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
Assignee: webkit-unassigned at lists.webkit.org
Reporter: dholbert at mozilla.com
CC: bfulgham at webkit.org, simon.fraser at apple.com,
zalan at apple.com
(This bug covers some behavior that's common between Blink & WebKit. I've filed https://bugs.chromium.org/p/chromium/issues/detail?id=935729 on Blink.)
STR:
(1) Load https://jsfiddle.net/a6n0cb9j/
EXPECTED RESULTS:
The borders should all be the same color.
ACTUAL RESULTS:
Safari 12 uses a grey border for the table, but a black border for the td and th.
Firefox 65 [1], Edge 18, and IE11 all give EXPECTED RESULTS, rendering both borders as black (via `currentColor`).
Technically the WHATWG HTML spec says all three borders should be grey, via this rule:
> table, td, th { border-color: gray; }
https://html.spec.whatwg.org/multipage/rendering.html#tables-2
...but I think we should remove that entirely because code-archeology seems to indicate that this was for compatibility with IE at the time[2], and IE itself doesn't have this behavior anymore. I've filed https://github.com/whatwg/html/issues/4391 on making this spec change.
[1] Firefox renders both borders black if the testcase is in standards-mode, or both gray in quirks mode. But I'd like to remove the quirks-mode behavior.
[2] Reference for code-archeology on the ancient-IE compat note: https://bugzilla.mozilla.org/show_bug.cgi?id=84307#c20 ("IE and Opera, which always use gray" back in 2006. Nowadays IE uses currentColor, i.e. black by default.)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190225/98d49a07/attachment.html>
More information about the webkit-unassigned
mailing list