Bug 1530048 part 1: Remove quirks-mode-only UA stylesheet rule that made table borders gray. r=dbaron
authorDaniel Holbert <dholbert@cs.stanford.edu>
Mon, 04 Mar 2019 23:33:50 +0000
changeset 520266 8ff9537201ef4849f867d490a8686fa408ce24fd
parent 520265 307b8e123debf65f7cbe58dcee28ef871747fbae
child 520267 72127702116cd18973ab501edfcb04bdc4cbe68a
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs1530048, 935708, 935729
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1530048 part 1: Remove quirks-mode-only UA stylesheet rule that made table borders gray. r=dbaron This quirk was originally for compatibility with IE, but IE doesn't have this special behavior anymore (in quirks-mode or in standards-mode). And Blink/WebKit have yet another set of behaviors, which are also not quirks-mode-dependent, and vary depending on the part of the table: https://bugs.chromium.org/p/chromium/issues/detail?id=935708 https://bugs.chromium.org/p/chromium/issues/detail?id=935729 Differential Revision: https://phabricator.services.mozilla.com/D21175
layout/style/res/quirk.css
--- a/layout/style/res/quirk.css
+++ b/layout/style/res/quirk.css
@@ -46,24 +46,16 @@ table {
 
   /* Quirk: cut off all font inheritance in tables except for family. */
   font-size: initial;
   font-weight: initial;
   font-style: initial;
   font-variant: initial;
 }
 
-/*
- * Make table borders gray for compatibility with what other browsers do
- * in all modes, rather than using the foreground color.
- */
-table, td, th, tr, thead, tbody, tfoot, colgroup, col {
-  border-color: gray;
-}
-
 
 /* Quirk: collapse top margin of BODY and TD and bottom margin of TD */
 
 /*
  * While it may seem simpler to use :-moz-first-node and :-moz-last-node without
  * tags, it's slower, since we have to do the :-moz-first-node or :-moz-last-node
  * check on every single element in the document.  If we list all the
  * element names for which the UA stylesheet specifies a margin, the