[whatwg] Reg: Expected behavior of border for <td> element

I see that the attachment is missing, so pasting the content of my test case
here

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style>
table.borderCRGB { border-color: cyan; border-style: dashed; }
td.borderCHex { border-color: red; border-style: ridge; }
td.borderDHex {border: ridge blue;}
</style>
</head>
<body>
  This table has a dashed border with cyan value <br><br>
  <table class="borderCRGB">
      <tr>
        <td id="1" class="borderCHex">Does not have any border</td>

        <td id="2" class="borderDHex">Has a blue border.</td>
      </tr>
  </table>
  <div id="console"> </div>
</body>
</html>

Regs,
Rahaman

-----Original Message-----
From: whatwg-bounces@lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of M Rahaman
Sent: Monday, March 05, 2012 6:51 PM
To: whatwg at lists.whatwg.org
Subject: [whatwg] Reg: Expected behavior of border for <td> element

Hi All,

 

I have an attached test case, where I have <td> inside a <table>. What I
have found is that, for <td> inside a <table> if we specify border-color &
border-style, still the border is not shown in Safari (it is working in FF).
But if we explicitly specify border-width also along with border-color &
border-style, then the borders are drawn perfectly.

 

I know that border-color & border-style are sufficient to draw a border, but
is the expected behavior different for <td>? or, it might be an issue with
Safari. I tried to look for more details in the spec, but did not get much
info. If anyone can provide me some info regarding the expected behavior for
such cases it would be helpful for me to analyze the issue further.

 

Regs,

Rahaman

Received on Monday, 5 March 2012 05:23:52 UTC