[selectors4] comment on section 14 (Grid-Structural Selectors)

So I have a few comments (and requests) about section 14
of the current Selectors 4 draft:

1. I think the new combinator currently called the "column
    combinator" is not enough for many use cases I have in mind.
    I would like to extend it to matching between
    two cells:

    col || td   selects td if it belongs to logical column col
  or
    td1 || td2  selects td2 if td1 and td2 belong to same logical column

2. prose «Column membership is determined based on the semantics of the
    document language only: whether and how the elements are presented
    is not considered» is VERY unclear to me. With the given table:

    <colgroup><col span="2"><col></colgroup>
    <tbody>
      <tr><td id="c1"><td id="c2"><td id="c3"></tr>
    </tbody>

    I think spec says td:nth-column(1) selects #c1 and #c2 but I am
    absolutely sure some people will NOT understand it that way
    and will base it on cell-count, and that is semantics too.

    And, as a matter of fact, it CAN be based on cell-count if there
    is no colgroup/col defined...

    So you need at least a much more precise definition of what is a
    column in the context of Section 14, IMHO.

    I would add another pseudo called :nth-cell-count(an+b) looking
    only at cells count and spannings and not logical columns.

</Daniel>

Received on Thursday, 6 June 2013 08:50:42 UTC