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

Side by Side Diff: third_party/WebKit/LayoutTests/shadow-dom/css-focus-pseudo-match-shadow-host3.html

Issue 1774113002: Move Shadow DOM V1 tests from fast/dom/shadow to shadow-dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script> 2 <script src="../resources/js-test.js"></script>
3 <script src="resources/shadow-dom.js"></script> 3 <script src="../fast/dom/shadow/resources/shadow-dom.js"></script>
4 <style> 4 <style>
5 div { 5 div {
6 background-color: white; 6 background-color: white;
7 } 7 }
8 8
9 div#shadow-host:focus { 9 div#shadow-host:focus {
10 background-color: green; 10 background-color: green;
11 } 11 }
12 </style> 12 </style>
13 <body> 13 <body>
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 host.focus(); 142 host.focus();
143 backgroundColorShouldBe('shadow-host', 'rgb(0, 128, 0)'); 143 backgroundColorShouldBe('shadow-host', 'rgb(0, 128, 0)');
144 backgroundColorShouldBe('shadow-host/inner-shadow-host', 'rgb(255, 255, 0)') ; 144 backgroundColorShouldBe('shadow-host/inner-shadow-host', 'rgb(255, 255, 0)') ;
145 innerHost.focus(); 145 innerHost.focus();
146 backgroundColorShouldBe('shadow-host', 'rgb(0, 128, 0)'); 146 backgroundColorShouldBe('shadow-host', 'rgb(0, 128, 0)');
147 backgroundColorShouldBe('shadow-host/inner-shadow-host', 'rgb(0, 0, 255)'); 147 backgroundColorShouldBe('shadow-host/inner-shadow-host', 'rgb(0, 0, 255)');
148 } 148 }
149 149
150 testShadowComposedTree(); 150 testShadowComposedTree();
151 </script> 151 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698