Bug 19315

Summary: Table cell background image inherited incorrectly
Product: WebKit Reporter: chendo <webkit+bugzilla>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: dbates
Priority: P2    
Version: 525.x (Safari 3.1)   
Hardware: Mac   
OS: OS X 10.5   

Description chendo 2008-05-29 17:04:48 PDT
When applying a background style to a <tr> tag, all the cells within that <tr> tag inherits the background tag, causing the background image to be applied more than once.

This renders fine in FF3b6, haven't checked other browsers yet.

Reproducible code is below:

<html>
<head>
  <title>WebKit CSS bug</title>
  <style type="text/css">
  <!--
  tr
  {
    background: url(http://www.google.com/images/nav_logo3.png) no-repeat;
  }
  
  th, td
  {
    width: 200px;
    height: 100px;
  }
  -->
  </style>
</head>
<body>
  <table>
    <tr>
      <th>blah</th>
      <th>blah</th>
      <th>blah</th>
      <td>blah</td>
      <td>blah</td>
    </tr>
  </table>
</body>
</html>
Comment 1 Dave Hyatt 2008-05-29 18:04:10 PDT
We match IE"s rendering here I believe.
Comment 2 chendo 2008-05-29 18:22:06 PDT
(In reply to comment #1)
> We match IE"s rendering here I believe.
> 

Wait, that is supposed to be a GOOD thing?

I'm pretty sure IE's rendering engine isn't something that other engines should try to match.
Comment 3 Bodaniel Jeanes 2008-05-29 18:23:13 PDT
(In reply to comment #1)
> We match IE"s rendering here I believe.
> 

yeah the funny thing is here .... why!?? Usually if IE does it a certain way ... you know it's probably wrong.
Comment 4 Daniel Bates 2009-12-02 19:37:23 PST

*** This bug has been marked as a duplicate of bug 9268 ***