[wpt-sync] Sync PR 38369 - Fix incorrect :nth-child(... of S) with many children.
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox112 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 38369 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/38369
Details from upstream follow.
Steinar H. Gunderson <sesse@chromium.org> wrote:
Fix incorrect :nth-child(... of S) with many children.
When servicing :nth-child(... of S) from the cache (which happens with
more than 32 elements), we only store every third element in the cache,
but when looking up and not hitting an element exactly, we would not
properly skip siblings that don't match the selector.Add a DCHECK to make sure we catch this earlier if similar issues
should show up in the future.Fixed: 1412421
Change-Id: Id97d110e552760882ad0558e14980467f1017220Reviewed-on: https://chromium-review.googlesource.com/4224392
WPT-Export-Revision: ec2a2fd006865f8c8a70c743acb28b587ecfb3b6
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 3•3 years ago
|
||
Comment 4•3 years ago
|
||
| bugherder | ||
Description
•