W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2012

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

From: M Rahaman <mrahaman@innominds.com>
Date: Mon, 5 Mar 2012 18:53:52 +0530
Message-ID: <04d501ccfad3$35b74b30$a125e190$@innominds.com>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:40 UTC