Re: [selectors] :sorted pseudoclass for sorted tables

On Dec 2, 2013, at 1:21 PM, Tab Atkins Jr. wrote:

> On Sat, Nov 30, 2013 at 11:44 PM, Daniel Glazman
> <daniel.glazman@disruptive-innovations.com> wrote:
>> On 01/12/13 06:33, Peter Linss wrote:
>>> The number isn�t for numeric vs alphabetic sorting, it�s the ordinality of the sort key, as in, sort by this column first, then this second. When multiple sort keys are being used, it�ll likely be useful to style them so that the ordinality is visible.
>> 
>> That integer could be extended to ranges:
>>   1
>>   -3
>>   4-8
>>   9-
> 
> That's just an an+b term.  (And we can mix an+b with other grammars now, yay!)

Actually, no. I don't think what Daniel is describing is an+b term, but a actual range of indices (as in up to and including the 3rd item, or the 4th through 8th items, or the 9th item and above). If we add a range (which could be quite useful) then we should add it everywhere an+b is allowed (which might be an extension of an+b).

> 
>> I think we also miss a 'none' keyword here. The html model lacks it in
>> the case of a non-sortable column of a sortable table, for instance an
>> index of rows that you want to keep sequential even when the table is
>> sorted.
> 
> Interesting.
> 
> ~TJ

Received on Wednesday, 11 December 2013 01:03:29 UTC