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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/v0/deep-in-selectors.html

Issue 2306903002: Fix the wrong usages of CSSSelectorList::selectorUsesXXX() functions (Closed)
Patch Set: Fix Created 4 years, 3 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
Index: third_party/WebKit/LayoutTests/shadow-dom/v0/deep-in-selectors.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/v0/deep-in-selectors.html b/third_party/WebKit/LayoutTests/shadow-dom/v0/deep-in-selectors.html
new file mode 100644
index 0000000000000000000000000000000000000000..1681bd77ffa29e9ca32cb6a48bd3753830644155
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/shadow-dom/v0/deep-in-selectors.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<div id=a><div id=b></div></div>
+<script>
+test(() => {
+ const sr = a.createShadowRoot();
+ const p = document.createElement('p');
+ sr.appendChild(p);
+
+ assert_array_equals(document.querySelectorAll('#a *, #a /deep/ *'), [p, b]);
+}, '/deep/ should be valid in the second selector of selectors');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSSelector.h » ('j') | third_party/WebKit/Source/core/css/CSSSelector.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698