[CSS Shadow Parts] Import css/css-shadow-parts/simple-inline.html WPT
https://bugs.webkit.org/show_bug.cgi?id=203029
Reviewed by Adrian Perez de Castro.
* web-platform-tests/css/css-shadow-parts/simple-inline-expected.txt: Added.
* web-platform-tests/css/css-shadow-parts/simple-inline.html: Added.
* web-platform-tests/css/css-shadow-parts/w3c-import.log:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@251184 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/imported/w3c/ChangeLog b/LayoutTests/imported/w3c/ChangeLog
index af171e6..5b6037b 100644
--- a/LayoutTests/imported/w3c/ChangeLog
+++ b/LayoutTests/imported/w3c/ChangeLog
@@ -1,3 +1,14 @@
+2019-10-16 Antti Koivisto <antti@apple.com>
+
+ [CSS Shadow Parts] Import css/css-shadow-parts/simple-inline.html WPT
+ https://bugs.webkit.org/show_bug.cgi?id=203029
+
+ Reviewed by Adrian Perez de Castro.
+
+ * web-platform-tests/css/css-shadow-parts/simple-inline-expected.txt: Added.
+ * web-platform-tests/css/css-shadow-parts/simple-inline.html: Added.
+ * web-platform-tests/css/css-shadow-parts/w3c-import.log:
+
2019-10-15 Carlos Alberto Lopez Perez <clopez@igalia.com>
Import apng testcases from WPT.
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-shadow-parts/simple-inline-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/css-shadow-parts/simple-inline-expected.txt
new file mode 100644
index 0000000..f9704a7
--- /dev/null
+++ b/LayoutTests/imported/w3c/web-platform-tests/css/css-shadow-parts/simple-inline-expected.txt
@@ -0,0 +1,4 @@
+The following text should be green:
+
+FAIL Part in selected host is styled assert_equals: expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-shadow-parts/simple-inline.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-shadow-parts/simple-inline.html
new file mode 100644
index 0000000..f2c3638d
--- /dev/null
+++ b/LayoutTests/imported/w3c/web-platform-tests/css/css-shadow-parts/simple-inline.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS Shadow Parts - Simple Inline</title>
+ <meta href="mailto:fergal@chromium.org" rel="author" title="Fergal Daly">
+ <link href="http://www.google.com/" rel="author" title="Google">
+ <link href="https://drafts.csswg.org/css-shadow-parts/" rel="help">
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <script src="support/shadow-helper.js"></script>
+ </head>
+ <body>
+ <style>#c-e::part(partp) { color: green; }</style>
+ <script>installCustomElement("custom-element", "custom-element-template");</script>
+ <template id="custom-element-template">
+ <span id="part" part="partp" style="color: red">This text</span>
+ </template>
+ The following text should be green:
+ <custom-element id="c-e"></custom-element>
+ <script>
+ "use strict";
+ const colorGreen = "rgb(0, 128, 0)";
+ test(function() {
+ const el = getElementByShadowIds(document, ["c-e", "part"]);
+ assert_equals(window.getComputedStyle(el).color, colorGreen);
+ }, "Part in selected host is styled");
+ </script>
+ </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-shadow-parts/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/css/css-shadow-parts/w3c-import.log
index e49e915..71ff221 100644
--- a/LayoutTests/imported/w3c/web-platform-tests/css/css-shadow-parts/w3c-import.log
+++ b/LayoutTests/imported/w3c/web-platform-tests/css/css-shadow-parts/w3c-import.log
@@ -38,4 +38,5 @@
/LayoutTests/imported/w3c/web-platform-tests/css/css-shadow-parts/precedence-part-vs-part.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-shadow-parts/simple-forward-shorthand.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-shadow-parts/simple-forward.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-shadow-parts/simple-inline.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-shadow-parts/simple.html