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

Unified Diff: LayoutTests/fast/css/nth-child-of-pseudo-element-assert.html

Issue 1108783002: Don't cache nth-indices of pseudo elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Early return for pseudo elements in NthIndexCache. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/css/nth-child-of-pseudo-element-assert-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/nth-child-of-pseudo-element-assert.html
diff --git a/LayoutTests/fast/css/nth-child-of-pseudo-element-assert.html b/LayoutTests/fast/css/nth-child-of-pseudo-element-assert.html
new file mode 100644
index 0000000000000000000000000000000000000000..6e1cddede345b3ddc7b94dd816cedb28c54f5ab6
--- /dev/null
+++ b/LayoutTests/fast/css/nth-child-of-pseudo-element-assert.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<style>
+div::before {
+ position: relative;
+ overflow: scroll;
+ display: block;
+ width: 100px;
+ height: 100px;
+ content: "."
+}
+
+:nth-child(13)::-webkit-scrollbar {
+ color: pink;
+}
+</style>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+<p>This test should not trigger any ASSERTs.</p>
+<div></div>
« no previous file with comments | « no previous file | LayoutTests/fast/css/nth-child-of-pseudo-element-assert-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698