Closed Bug 72219 Opened 24 years ago Closed 24 years ago

support :last-child selector

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Other
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 46916

People

(Reporter: jameslariviere, Assigned: pierre)

Details

Since we support the :last-child selector I thought we should support this one too.

So for example instead of doing sommething like this (mozilla currently supports)...

td > :first-node {
  margin-top: 0;
}

td > :last-node {
  margin-bottom: 0;
}

you could do something like this:

td > p:first-child {
  margin-top: 0;
}

td > p:last-child {
  margin-bottom: 0;
}
Crap I ment to say that we currently support the :first-child selector so we
should also support the :last-child selector. :-)
Duplicate of ":last-child pseudoclass"

*** This bug has been marked as a duplicate of 46916 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
GD I swear I searched 3 times for this as a dupe!

Damn search query! :-)

verf.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.