[Bug 24425] New: Add new indexing pseudo-class for cell in column

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24425

            Bug ID: 24425
           Summary: Add new indexing pseudo-class for cell in column
           Product: CSS
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Selectors
          Assignee: fantasai.bugs@inkedblade.net
          Reporter: crimsteam@gmail.com
        QA Contact: public-css-bugzilla@w3.org

Now whe have define some indexing pseudo-class, and we can use it in different
ways:

col:nth-child(2n+1) - take all odd column (what we defined in HTML) and use
some style. So indexing is make for all child in table (but col and colgroup
must be first, so theat, tfoot and tbody we can easy filter). With this
selector we can style all cell in column (when property is inherit). Very
similar result we get when use col:nth-of-type(2n+1) or :nth-match(2n+1 of
col). 

td:nth-column(2n+1) - if I correctly understand this, we take all odd column,
and select only cell which are td element. So indexing is make for column, but
we select cell, it's strange (differently than in previous pseudos), but ok, in
some case this can be usefull. 

>From Selector4:
"The :nth-column(An+B) pseudo-class notation represents a cell element
belonging to a column that has An+B-1 columns before it, for any positive
integer or zero value of n."

"E:nth-column(n) - an E element that represents a cell belonging to the nth
column in a grid/table "

But where is selector which indexing cell in column and select cell? Like this:
td:nth-cell(2n+1). It's mean, indexing all cell in single column (separately
for any column), take only odd cell, and take only td.  

I know pseudos for column is sth news, but it is worth considering make some
more useful selectors in this area.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 28 January 2014 14:59:55 UTC