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

Unified Diff: LayoutTests/fast/dom/shadow/css-focus-pseudo-match-shadow-host5-expected.txt

Issue 1177673005: Implement ShadowRoot.delegatesFocus 4/4 (match CSS :focus for shadow host) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix for comments Created 5 years, 6 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: LayoutTests/fast/dom/shadow/css-focus-pseudo-match-shadow-host5-expected.txt
diff --git a/LayoutTests/fast/dom/shadow/css-focus-pseudo-match-shadow-host5-expected.txt b/LayoutTests/fast/dom/shadow/css-focus-pseudo-match-shadow-host5-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c2d1250c7b0b4ab8841306c61f8d2bea823999ac
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/css-focus-pseudo-match-shadow-host5-expected.txt
@@ -0,0 +1,44 @@
+testing nested distribution
+PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
+#input1, #input2 are (re)distributed in the same treescope as #input3, but :focus on shadow host only matches when a focused element is under its shadow tree.
+(1/4) top and inner shadow do not delegate focus.
+PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
+PASS backgroundColorOf('shadow-host/inner-shadow-host') is "rgb(255, 255, 0)"
+PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
+PASS backgroundColorOf('shadow-host/inner-shadow-host') is "rgb(255, 255, 0)"
+PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
+PASS backgroundColorOf('shadow-host/inner-shadow-host') is "rgb(255, 255, 0)"
+PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
+PASS backgroundColorOf('shadow-host/inner-shadow-host') is "rgb(255, 255, 0)"
+(2/4) top shadow delegates, but inner shadow does not.
+PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
+PASS backgroundColorOf('shadow-host/inner-shadow-host') is "rgb(255, 255, 0)"
+PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
+PASS backgroundColorOf('shadow-host/inner-shadow-host') is "rgb(255, 255, 0)"
+PASS backgroundColorOf('shadow-host') is "rgb(0, 128, 0)"
+PASS backgroundColorOf('shadow-host/inner-shadow-host') is "rgb(255, 255, 0)"
+PASS backgroundColorOf('shadow-host') is "rgb(0, 128, 0)"
+PASS backgroundColorOf('shadow-host/inner-shadow-host') is "rgb(255, 255, 0)"
+(3/4) top shadow does not delegate, but inner shadow does.
+PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
+PASS backgroundColorOf('shadow-host/inner-shadow-host') is "rgb(255, 255, 0)"
+PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
+PASS backgroundColorOf('shadow-host/inner-shadow-host') is "rgb(255, 255, 0)"
+PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
+PASS backgroundColorOf('shadow-host/inner-shadow-host') is "rgb(255, 255, 0)"
+PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
+PASS backgroundColorOf('shadow-host/inner-shadow-host') is "rgb(0, 0, 255)"
+(4/4) both shadow hosts delagate focus.
+PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
+PASS backgroundColorOf('shadow-host/inner-shadow-host') is "rgb(255, 255, 0)"
+PASS backgroundColorOf('shadow-host') is "rgb(255, 255, 255)"
+PASS backgroundColorOf('shadow-host/inner-shadow-host') is "rgb(255, 255, 0)"
+PASS backgroundColorOf('shadow-host') is "rgb(0, 128, 0)"
+PASS backgroundColorOf('shadow-host/inner-shadow-host') is "rgb(255, 255, 0)"
+PASS backgroundColorOf('shadow-host') is "rgb(0, 128, 0)"
+PASS backgroundColorOf('shadow-host/inner-shadow-host') is "rgb(0, 0, 255)"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
+

Powered by Google App Engine
This is Rietveld 408576698