Bug 573960. When bordercolor is set, it should also be used as the table grid color. r=fantasai, a=blocker
☠☠ backed out by c9bc3f330a87 ☠ ☠
authorDaniel Kirsch <daniel@kirschkern.de>
Tue, 18 Jan 2011 21:20:35 -0500
changeset 60844 4e9a62d516ef37f8c558c23f5afe62e9f06015c9
parent 60843 c0547fd3a3ccf61d0e4699118e56fe6006fb58be
child 60845 2926ad5face71e554ae60fda74ca11f7dd553c76
child 60846 c9bc3f330a878082367e6bbf7f5e94a968dfd825
push idunknown
push userunknown
push dateunknown
reviewersfantasai, blocker
bugs573960
milestone2.0b10pre
Bug 573960. When bordercolor is set, it should also be used as the table grid color. r=fantasai, a=blocker
layout/style/html.css
--- a/layout/style/html.css
+++ b/layout/style/html.css
@@ -323,81 +323,81 @@ table[frame="border"] { border-style: ou
 
 table:-moz-table-border-nonzero > * > tr > td,
 table:-moz-table-border-nonzero > * > tr > th,
 table:-moz-table-border-nonzero > * > td,
 table:-moz-table-border-nonzero > * > th,
 table:-moz-table-border-nonzero > td,
 table:-moz-table-border-nonzero > th
 {
-  border: thin inset;
+  border-style: inset;
 }
 
 /* collapse only if rules are really specified */
 table[rules]:not([rules="none"]):not([rules=""]) {
   border-collapse: collapse;
 }
 
 /* only specified rules override 'border' settings  
   (increased specificity to achieve this) */
 table[rules]:not([rules=""])> tr > td,
 table[rules]:not([rules=""])> * > tr > td,
 table[rules]:not([rules=""])> tr > th,
 table[rules]:not([rules=""])> * > tr > th,
 table[rules]:not([rules=""])> td,
 table[rules]:not([rules=""])> th
 {
-  border: thin none;
+  border-style: none;
 }
 
 
 table[rules][rules="none"]  > tr > td,
 table[rules][rules="none"] > * > tr > td,
 table[rules][rules="none"] > tr > th,
 table[rules][rules="none"] > * > tr > th,
 table[rules][rules="none"] > td,
 table[rules][rules="none"] > th
 {
-  border: thin hidden;
+  border-style: hidden;
 }
 
 table[rules][rules="all"] > tr > td,
 table[rules][rules="all"] > * > tr > td,
 table[rules][rules="all"] > tr > th,
 table[rules][rules="all"] > * > tr > th,
 table[rules][rules="all"] > td,
 table[rules][rules="all"] > th 
 {
-  border: thin solid ;
+  border-style: solid;
 }
 
 table[rules][rules="rows"] > tr,
 table[rules][rules="rows"] > * > tr {
-  border-top: thin solid;
-  border-bottom: thin solid;
+  border-top-style: solid;
+  border-bottom-style: solid;
 }
 
 
 table[rules][rules="cols"] > tr > td,
 table[rules][rules="cols"] > * > tr > td,
 table[rules][rules="cols"] > tr > th,
 table[rules][rules="cols"] > * > tr > th {
-  border-left: thin solid;
-  border-right: thin solid;
+  border-left-style: solid;
+  border-right-style: solid;
 }
 
 table[rules][rules="groups"] > colgroup {
-  border-left: thin solid;
-  border-right: thin solid;
+  border-left-style: solid;
+  border-right-style: solid;
 }
 table[rules][rules="groups"] > tfoot,
 table[rules][rules="groups"] > thead,
 table[rules][rules="groups"] > tbody {
-  border-top: thin solid;
-  border-bottom: thin solid;
+  border-top-style: solid;
+  border-bottom-style: solid;
 }
   
   
 /* caption inherits from table not table-outer */  
 caption {
   display: table-caption;
   text-align: center;
   -moz-box-sizing: border-box;
@@ -414,58 +414,70 @@ table[align="center"] > caption[align="l
 
 table[align="center"] > caption[align="right"] {
   margin-left: 0;
 }
 
 tr {
   display: table-row;
   vertical-align: inherit;
+  border-width: thin;
+  border-color: inherit; /* inherit bordercolor attribute */
 }
 
 col {
   display: table-column;
 }
 
 colgroup {
   display: table-column-group;
 }
 
 tbody {
   display: table-row-group;
   vertical-align: middle;
+  border-width: thin;
+  border-color: inherit;
 }
 
 thead {
   display: table-header-group;
   vertical-align: middle;
+  border-width: thin;
+  border-color: inherit;
 }
 
 tfoot {
   display: table-footer-group;
   vertical-align: middle;
+  border-width: thin;
+  border-color: inherit;
 }
 
 /* for XHTML tables without tbody */
 table > tr {
   vertical-align: middle;
 }
 
 td { 
   display: table-cell;
   vertical-align: inherit;
   text-align: inherit; 
   padding: 1px;
+  border-width: thin;
+  border-color: inherit;
 }
 
 th {
   display: table-cell;
   vertical-align: inherit;
   font-weight: bold;
   padding: 1px;
+  border-width: thin;
+  border-color: inherit;
 }
 
 tr > form:-moz-is-html, tbody > form:-moz-is-html,
 thead > form:-moz-is-html, tfoot > form:-moz-is-html,
 table > form:-moz-is-html {
   /* Important: don't show these forms in HTML */
   display: none !important;
 }