Last Comment Bug 371323 - implement :-moz-nth-column() pseudo class for table cells
: implement :-moz-nth-column() pseudo class for table cells
Status: NEW
: css-moz, dev-doc-needed
Product: Core
Classification: Components
Component: CSS Parsing and Computation (show other bugs)
: Trunk
: All All
: P3 enhancement with 20 votes (vote)
: Future
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
Depends on: col-align-inherit
Blocks: selectors4
  Show dependency treegraph
 
Reported: 2007-02-22 18:28 PST by David Baron :dbaron: ⌚️UTC+2 (mostly busy through August 4; review requests must explain patch)
Modified: 2016-07-16 01:21 PDT (History)
30 users (show)
roc: blocking1.9.1-
roc: wanted1.9.1-
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description David Baron :dbaron: ⌚️UTC+2 (mostly busy through August 4; review requests must explain patch) 2007-02-22 18:28:49 PST
We should implement a :-moz-nth-column() pseudo-class that applies to table cells (and maybe table columns, although the utility there is limited).  It should have syntax equivalent to the css3-selectors :nth-child pseudo-class described in http://www.w3.org/TR/css3-selectors/#nth-child-pseudo .  I'd rather not implement all the other pseudo-classes similar to :nth-child, since I think things like :first-column, :last-column, and :only-column are less likely to be useful for columns than they are for children.

The :-moz-nth-column pseudo-class should operate on the semantic tabular structure of the document.  It has no effect on things that are not semantically tabular, and it still works on something that is semantically tabular but displayed without display: table*.

This should be pretty easy to implement once bug 915 is fixed, since fixing bug 915 requires adding the ability to compute which column a cell is in.

PLEASE DO NOT COMMENT ON THIS BUG UNLESS YOUR COMMENT WILL CONTRIBUTE TO FIXING IT OR HELP YOU CONTRIBUTE TO FIXING IT.
Comment 1 David Baron :dbaron: ⌚️UTC+2 (mostly busy through August 4; review requests must explain patch) 2007-02-28 11:47:02 PST
Note that the naming of this pseudo-*class* should be distinguished from any pseudo-*element* for multi-column column boxes.
Comment 2 David Baron :dbaron: ⌚️UTC+2 (mostly busy through August 4; review requests must explain patch) 2011-10-20 07:06:28 PDT
http://dev.w3.org/csswg/selectors4/#table-pseudos now as a draft of this selector, :nth-column(an+b) along with :nth-last-column(an+b) and :column(selector-list).

Note You need to log in before you can comment on or make changes to this bug.