Re: [css-position] sticky only along one axis

On Sat, 2014-03-15 at 20:31 -0700, Brad Kemper wrote: 

> On Mar 14, 2014, at 5:59 PM, "Robert O'Callahan"
> <> wrote:
> > On Sat, Mar 15, 2014 at 12:52 AM, Viatcheslav Ostapenko
> > <> wrote: 
> >         There is another interesting case is sticky positioning for
> >         table
> >         columns. The table "col" is pretty special tag and sticky
> >         positioning is
> >         now not supported for columns, but there is clear use case
> >         for sticky
> >         table columns. 

> > It would be useful but it would be very difficult to spec and
> > implement and would probably create more trouble than it's worth. 
> How about this:

> Positioning on table-column and table-column-group items affect their
> corresponding table-cell items as though those table-cell items were
> selected in the same rule. Table-cell items spanning more than one
> column (as with HTML's 'colspan') are only selected by
> table-column/table-column-group when they originate in a cell starting
> in the column(s) of the selected table-column/table-column-group.

I would agree with Robert. It is difficult to implement and will be used
less often than sticky table headers, for example.
Sticky columns are useful for wide tables, which are less common than
tall tables.
Taking into account that sticky columns could be easily workaround by
assigning position:sticky to every corresponding table cell, I would
suggest to disallow position:sticky for table columns.


Received on Monday, 17 March 2014 19:44:36 UTC