From 1ef43da873083ba51ccd6531f85553b88eafda20 Mon Sep 17 00:00:00 2001 From: Momoko Sumida Date: Thu, 16 Aug 2018 09:43:52 +0000 Subject: [PATCH] Bug 1480047 [wpt PR 12252] - Add WPT for :scope selector on shadow trees, a=testonly Automatic update from web-platform-testsAdd WPT for :scope selector on shadow trees This WPT shows that :scope does not work for shadow root. :scope matches nothing when the direct child element or descendant of shadow root should be selected, while :scope works fine for descendant elements within shadow root. Link to the spec: https://drafts.csswg.org/selectors-4/#the-scope-pseudo Link to related issue: https://github.com/w3c/csswg-drafts/issues/3016 Bug: 859692 Change-Id: I801706eb7891035dcb900588d5542bd48fa1c12a Reviewed-on: https://chromium-review.googlesource.com/1158445 Commit-Queue: Momoko Sumida Reviewed-by: Rakina Zata Amni Reviewed-by: Hayato Ito Cr-Commit-Position: refs/heads/master@{#583210} -- wpt-commits: a48491848fb4e328e6cdd5c4d7a95494f1ff2c6a wpt-pr: 12252 --- testing/web-platform/meta/MANIFEST.json | 10 ++++++ .../tests/css/selectors/scope-selector.html | 34 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 testing/web-platform/tests/css/selectors/scope-selector.html diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index 50ff0922e1197..97161077379ed 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -338541,6 +338541,12 @@ {} ] ], + "css/selectors/scope-selector.html": [ + [ + "/css/selectors/scope-selector.html", + {} + ] + ], "css/selectors/user-invalid.html": [ [ "/css/selectors/user-invalid.html", @@ -569428,6 +569434,10 @@ "99c0cb4c26294d1d8b655ed0a35d1f0eeb4a9ccb", "reftest" ], + "css/selectors/scope-selector.html": [ + "bda0aed602aa691bba4c4089f0a4827a9b836c9e", + "testharness" + ], "css/selectors/scope-without-scoping.html": [ "2ee7619e8023923c7d484554fd78c8e042d4b6ad", "reftest" diff --git a/testing/web-platform/tests/css/selectors/scope-selector.html b/testing/web-platform/tests/css/selectors/scope-selector.html new file mode 100644 index 0000000000000..bda0aed602aa6 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/scope-selector.html @@ -0,0 +1,34 @@ + + + + + +
+