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

Side by Side Diff: third_party/WebKit/LayoutTests/shadow-dom/v0-inert-features-in-v1-shadow-trees.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
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/slots-dynamic.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="utf-8"> 2 <meta charset="utf-8">
3 <title>v0 features should be inert in v1 shadow trees.</title> 3 <title>v0 features should be inert in v1 shadow trees.</title>
4 <script src='../resources/testharness.js'></script> 4 <script src='../resources/testharness.js'></script>
5 <script src='../resources/testharnessreport.js'></script> 5 <script src='../resources/testharnessreport.js'></script>
6 <script src='resources/shadow-dom.js'></script> 6 <script src='resources/shadow-dom.js'></script>
7 <div id='host'> 7 <div id='host'>
8 <template data-mode='open'> 8 <template data-mode='open'>
9 <content></content> 9 <content></content>
10 <shadow></shadow> 10 <shadow></shadow>
11 </template> 11 </template>
12 <div id='child'></div> 12 <div id='child'></div>
13 </div> 13 </div>
14 <script> 14 <script>
15 convertTemplatesToShadowRootsWithin(host); 15 convertTemplatesToShadowRootsWithin(host);
16 document.body.offsetLeft;
17 test(function () { 16 test(function () {
18 var content = host.shadowRoot.querySelector('content'); 17 var content = host.shadowRoot.querySelector('content');
19 var shadow = host.shadowRoot.querySelector('shadow'); 18 var shadow = host.shadowRoot.querySelector('shadow');
20 assert_equals(content.getDistributedNodes().length, 0); 19 assert_equals(content.getDistributedNodes().length, 0);
21 assert_equals(shadow.getDistributedNodes().length, 0); 20 assert_equals(shadow.getDistributedNodes().length, 0);
22 }, "insertion points should be inert in v1"); 21 }, "insertion points should be inert in v1");
23 </script> 22 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/slots-dynamic.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698