Ronny Riedel: "color" wirkt sich auf "border-color" aus

Beitrag lesen

Hallo zusammen,

ist es normal das Firefox (getestet mit 3.0.x, 3.5.x, 3.6.x) per Default den Rahmen in der Farbe darstellt, die man mit "color" vorgibt, wenn gleichzeitig keine Regel für "border-color" greift?

Beispiel:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"  
 "http://www.w3.org/TR/REC-html40/strict.dtd">  
<html>  
   <head>  
      <title>FireFox - color vs. border-color</title>  
      <style type="text/css">  
         table {  
            border-collapse: collapse;  
         }  
         th, td {  
            border-width: 1px;  
            border-style: solid;  
            padding: 3px 5px;  
         }  
         th {  
            color: red;  
         }  
         .left {  
            border-color: inherit;  
         }  
      </style>  
   </head>  
   <body>  
      <h3>FireFox - color vs. border-color</h3>  
      <table>  
         <thead>  
            <tr>  
               <th class="left">vermutetes Verhalten</th>  
               <th>tats&auml;chliches Verhalten</th>  
            </tr>  
         </thead>  
         <tbody>  
            <tr>  <td>Zeile 1</td> <td>Zeile 1</td>  </tr>  
            <tr>  <td>Zeile 2</td> <td>Zeile 2</td>  </tr>  
            <tr>  <td>Zeile 3</td> <td>Zeile 3</td>  </tr>  
            <tr>  <td>Zeile 4</td> <td>Zeile 4</td>  </tr>  
            <tr>  <td>Zeile 5</td> <td>Zeile 5</td>  </tr>  
         </tbody>  
      </table>  
   </body>  
</html>  

Grüße
  RR