This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24397 - Example 53 for column combinator is wrong
Summary: Example 53 for column combinator is wrong
Status: NEW
Alias: None
Product: CSS
Classification: Unclassified
Component: Selectors (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: fantasai
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-26 00:20 UTC by Arkadiusz Michalski (Spirit)
Modified: 2014-01-26 00:20 UTC (History)
0 users

See Also:


Attachments

Description Arkadiusz Michalski (Spirit) 2014-01-26 00:20:17 UTC
We have this:

EXAMPLE 53 (http://dev.w3.org/csswg/selectors4/#column-combinator)
The following example makes cells C, E, and G yellow.

col.selected || td {
  background: gray;
  color: white;
  font-weight: bold;
}

<table>
  <col span="2">
  <col class="selected">
  <tr><td>A <td>B <td>C
  <tr><td colspan="2">D <td>E
  <tr><td>F <td colspan="2">G
</table>

First, we don't have any yellow style, and second, I think this selector should not match G cell (only C and E).