Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: LayoutTests/fast/dom/SelectorAPI/document-fragment-nth.html

Issue 1023393002: Cache element indices for :nth-child and :nth-last-child selectors. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Moved nth-index-cache scope to updateStyle Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <script>
4 description("DocumentFragment.querySelector matching nth-child of fragment.");
5
6 var fragment = document.createDocumentFragment();
7 for (var i = 0; i < 12; i++) {
8 var child = document.createElement("span");
9 if (i == 11)
10 child.id = "pass";
11 fragment.appendChild(child);
12 }
13
14 shouldBe('fragment.querySelector(":nth-child(12)").id', '"pass"');
15 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/SelectorAPI/document-fragment-nth-expected.txt » ('j') | Source/core/dom/Document.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698