Closed Bug 414043 Opened 17 years ago Closed 17 years ago

CSS3 last-child selectors are not updated properly when Javascript manipulates the DOM

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 73586

People

(Reporter: bdonlan, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11 If the order of children in a DOM node is changed by invoking element.insertBefore, the last-child selectors applied to the children of /other/ nodes are not updated properly. Mouse-overing them will trigger them to update. Reproducible: Always Steps to Reproduce: 1. Visit the above link. 2. Click one of the 'swap' links. Actual Results: The two divs swap position; the new bottom div still shows one of the swap links. Expected Results: The last-child selector should have caused both swap links in the div at the bottom to always be hidden. I have also tested this on a trunk snapshot: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b3pre) Gecko/2008012504 Minefield/3.0b3pre
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Component: General → Style System (CSS)
Product: Firefox → Core
Resolution: --- → DUPLICATE
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.