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

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

Issue 2039813008: Remove unnecessary calling offset{Top,Left} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean-tests
Patch Set: Created 4 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 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="../fast/dom/shadow/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;
(...skipping 16 matching lines...) Expand all
27 createDOM('style', {}, 27 createDOM('style', {},
28 document.createTextNode('div { background-color: yellow; } div#inner-shadow-host:focus { background-color: blue; }')), 28 document.createTextNode('div { background-color: yellow; } div#inner-shadow-host:focus { background-color: blue; }')),
29 createDOM('input', {'id': 'input2'}), 29 createDOM('input', {'id': 'input2'}),
30 createDOM('div', {'id': 'inner-shadow-host'}, 30 createDOM('div', {'id': 'inner-shadow-host'},
31 createDOM('slot', {}), // #input1 goes here 31 createDOM('slot', {}), // #input1 goes here
32 attachShadow( 32 attachShadow(
33 {'mode': 'open', 'delegatesFocus': delegatesFocus2}, 33 {'mode': 'open', 'delegatesFocus': delegatesFocus2},
34 createDOM('slot', {}), // #input1 redistributed her e, #input2 goes here. 34 createDOM('slot', {}), // #input1 redistributed her e, #input2 goes here.
35 createDOM('input', {'id': 'input3'}))))))); 35 createDOM('input', {'id': 'input3'})))))));
36 36
37 sandbox.offsetTop;
38 } 37 }
39 38
40 function testNestedDistribution() { 39 function testNestedDistribution() {
41 debug('testing nested distribution'); 40 debug('testing nested distribution');
42 41
43 buildNestedDistributionTree(false, false); 42 buildNestedDistributionTree(false, false);
44 43
45 backgroundColorShouldBe('shadow-host', 'rgb(255, 255, 255)'); 44 backgroundColorShouldBe('shadow-host', 'rgb(255, 255, 255)');
46 45
47 var outerInput = getNodeInComposedTree('outer-input'); 46 var outerInput = getNodeInComposedTree('outer-input');
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 backgroundColorShouldBe('shadow-host', 'rgb(0, 128, 0)'); 135 backgroundColorShouldBe('shadow-host', 'rgb(0, 128, 0)');
137 backgroundColorShouldBe('shadow-host/inner-shadow-host', 'rgb(255, 255, 0)') ; 136 backgroundColorShouldBe('shadow-host/inner-shadow-host', 'rgb(255, 255, 0)') ;
138 137
139 input3.focus(); 138 input3.focus();
140 backgroundColorShouldBe('shadow-host', 'rgb(0, 128, 0)'); 139 backgroundColorShouldBe('shadow-host', 'rgb(0, 128, 0)');
141 backgroundColorShouldBe('shadow-host/inner-shadow-host', 'rgb(0, 0, 255)'); 140 backgroundColorShouldBe('shadow-host/inner-shadow-host', 'rgb(0, 0, 255)');
142 } 141 }
143 142
144 testNestedDistribution(); 143 testNestedDistribution();
145 </script> 144 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698