Bug 16914 - bordercolor attribute on a <td> is ignored
Summary: bordercolor attribute on a <td> is ignored
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tables (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-17 15:22 PST by Anantha Keesara
Modified: 2022-08-14 03:17 PDT (History)
7 users (show)

See Also:


Attachments
Reduction (106 bytes, text/html)
2008-01-17 15:23 PST, Anantha Keesara
no flags Details
Safari 15.6 matches with other browsers (490.47 KB, image/png)
2022-08-14 03:16 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anantha Keesara 2008-01-17 15:22:29 PST
Saw this issue on http://news.vnet.cn/ , but looks like the website changed recently and cannot show this issue..

but, attached is the testcase.

Other browsers:
All browsers have different behavior.
Comment 1 Anantha Keesara 2008-01-17 15:23:11 PST
Created attachment 18513 [details]
Reduction
Comment 2 Eric Seidel (no email) 2008-01-17 16:22:50 PST
My favorite part is that FF3 and FF2 don't even seem to be exactly the same. :)

Safari respects both inner and outer border colors.
FF respects outer border colors, draws a grey/darkgrey inner border
Opera respects neither border color
Comment 3 Eric Seidel (no email) 2008-01-17 16:23:43 PST
Actually, my list of supports was wrong.  I assumed "black" was default, and "red" was the applied color.  No one gets this right. :)
Comment 4 Daniel Bates 2009-12-12 12:32:16 PST
The bordercolor attribute appears to be an Internet Explorer-specific HTML attribute, see <http://msdn.microsoft.com/en-us/library/ms533517(VS.85).aspx>. Hence, it is not part of any W3C standard. Instead, the preferred method for setting the border color is to use the CSS property border-color.

For example, we can implement the reduction using CSS properties as follows:

<table style="border: 1px solid red" border="1">
<tr>
  <td style="border: 1px solid blue">foo</td>
  <td>bar</td>
</tr>
</table>

Notice, this will produce analogous results to the IE-specific attribute but uses the standardized CSS properties.
Comment 5 Ahmad Saleem 2022-08-14 03:16:59 PDT
Created attachment 461609 [details]
Safari 15.6 matches with other browsers

I am not able to reproduce this bug as can be seen from attached screenshot, all browsers respect inner and outer table border color and show same. Although Firefox has strange colours but it does do same, so I am going to mark this as "RESOLVED CONFIGURATION CHANGED". Thanks!