Closed Bug 46916 Opened 24 years ago Closed 23 years ago

:last-child pseudoclass

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

VERIFIED FIXED
mozilla0.9

People

(Reporter: hand, Assigned: ian)

References

()

Details

(Keywords: css3)

Attachments

(2 files)

Please implement the CSS3 last-child pseudoclass selector.
This bug is related to bug 46638. Marking Future/easy fix. Maybe it will make it 
before we ship. The reporter also wanted the 'subject' pseudo-class.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Whiteboard: [easy fix]
Target Milestone: --- → Future
This would be a great one to implement if, as you say, it is easy, especially
considering the alleged feature set of our future competition...
Keywords: mozilla0.9, nsbeta1
Summary: last-child pseudoclass → :last-child pseudoclass
About the ":subject" thing : it has been dropped in the last version of the
draft. It has a huge performance side effect and its syntax was not clear. (just
as a reminder : I am the original proposer and implementor of this pseudo).
Netscape's standard compliance QA team reorganised itself once again, so taking 
remaining non-tables style bugs. Sorry about the spam. I tried to get this done 
directly at the database level, but apparently that is "not easy because of the 
shadow db", "plus it screws up the audit trail", so no can do...
QA Contact: chrisd → ian
*** Bug 72219 has been marked as a duplicate of this bug. ***
Blocks: selectors3
Keywords: css3
Attached patch adds code to mirror what we do with :first-child and :first-node,
but for :last-child and :last-node.

Pierre: Could I have r= and moa= please?
Attinasi: Could I have sr= please?

Thanks...
Assignee: pierre → ian
Status: ASSIGNED → NEW
Keywords: patch
QA Contact: ian → dbaron
Hardware: PC → All
Whiteboard: [easy fix] → [fix in hand]
Target Milestone: Future → mozilla0.9
Blocks: 49778
Please run the test I attached above. You'll see that we have a problem with
elements not loosing pseudo-classes...

Yep. Seems like we're not recomputing enough of the style. That's another bug
though (would you like me to file it?).
This patch is good, r=pierre.  Open a separate bug report with dependency on this 
one for the problem with DHTML.  Thanks to Daniel for the excellent testcase...
Created 73586 with detected reflow bug 
when are you checking this in?
As soon as I get a super review, why? I haven't been pushing for one, if you 
need this urgently then I can see about speeding up the process...
Well to tell you the truth I could really use this for a website I help run...
www.mutualfundsnet.com.  I use the :first-child but it would be better to also
use the :last-child.

This would make my life easier with the boss... ;-)

thanks hixie
Marc sent me sr=attinasi by mail (thanks Marc). Any volunteers for checkin?
glazman@netscape.com checked it in this morning.
Checked in for Ian
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
I just checked my testcases with win 03-30-04 build and :last-child works great!

THanks Ian.
Status: RESOLVED → VERIFIED
Daniel: Thanks for checking it in.
James: Thanks for verifying the fix.
Whiteboard: [fix in hand]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: