Closed Bug 1808228 Opened 2 years ago Closed 2 years ago

Matching for nth-child(An+B of selector list), nth-last-child(An+B of selector list)

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: zrhoffman, Assigned: zrhoffman)

References

Details

Attachments

(2 files, 1 obsolete file)

Once parsing is supported in bug 1808227, we should support matching nth-child(An+B of selector list) and nth-last-child(An+B of selector list).

Depends on: 1808227

Since we have been using a single FxHashMap to cache all :nth-child
indices (with no selector list), each different selector list seems to
need its own cache.

An immediate effect of this is that the NthIndexCache type now accepts a
type parameter (for selector implementation).

Assignee: nobody → zach
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

It can be reused for the Is, Where, and Negation components.

It can be reused for the Is, Where, and Negation components.

Attachment #9311255 - Attachment is obsolete: true
Blocks: 1809754
No longer blocks: 1808229
Attachment #9311254 - Attachment description: Bug 1808228 - Implement selector matching for nth-child(An+B of selector list) and :nth-last-child(An+B of selector list) r=emilio → Bug 1808228 - Implement selector matching for :nth-child(An+B of selector list) and :nth-last-child(An+B of selector list) r=emilio
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/798bdb0f29c6
Implement selector matching for :nth-child(An+B of selector list) and :nth-last-child(An+B of selector list) r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/37983 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
Upstream PR merged by moz-wptsync-bot
Blocks: 1810657
Blocks: 1795517
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d950703b495a
Reuse list_matches_complex_selector() where possible r=emilio
Regressions: 1834717
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: