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)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
111 Branch
Tracking | Status | |
---|---|---|
firefox111 | --- | fixed |
People
(Reporter: zrhoffman, Assigned: zrhoffman)
References
(Blocks 2 open bugs)
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).
Assignee | ||
Updated•2 years ago
|
Blocks: nth-child-of, 1808229
Assignee | ||
Comment 1•2 years ago
|
||
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).
Updated•2 years ago
|
Assignee: nobody → zach
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee | ||
Comment 2•2 years ago
|
||
It can be reused for the Is, Where, and Negation components.
Assignee | ||
Comment 3•2 years ago
|
||
It can be reused for the Is, Where, and Negation components.
Updated•2 years ago
|
Attachment #9311255 -
Attachment is obsolete: true
Updated•2 years ago
|
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
Comment 6•2 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox111:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
Upstream PR merged by moz-wptsync-bot
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d950703b495a
Reuse list_matches_complex_selector() where possible r=emilio
Comment 9•2 years ago
|
||
bugherder |
You need to log in
before you can comment on or make changes to this bug.
Description
•