W3C home > Mailing lists > Public > www-style@w3.org > February 2009

Re: possible CSS spec flaw with Sibling Selector and rowspans

From: Aryeh Gregor <Simetrical+w3c@gmail.com>
Date: Fri, 13 Feb 2009 07:31:47 -0500
Message-ID: <7c2a12e20902130431r769aa1f7i58732ccf42c5bfca@mail.gmail.com>
To: Olivier GENDRIN <olivier.gendrin@gmail.com>
Cc: W3C CSS <www-style@w3.org>

On Fri, Feb 13, 2009 at 6:19 AM, Olivier GENDRIN
<olivier.gendrin@gmail.com> wrote:
> <html>
> <head>
> <style>
> td {background: red;}
> td + td {background: blue;}
> </style>
> </head>
> <body>
> <table>
> <tbody>
> <tr>
> <td rowspan="2">I'm red</td>
> <td>I'm blue</td>
> </tr>
> <tr>
> <td>I'm red but shouldn't I be blue ?</td>

No.  The + combinator cares only about the DOM.  rowspan is just an
attribute like any other and does not affect which elements are
siblings of which other elements from the perspective of CSS,
JavaScript, etc.
Received on Friday, 13 February 2009 12:32:23 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:16 GMT