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

Side by Side Diff: LayoutTests/fast/css/invalidation/detach-reattach-shadow.html

Issue 210813002: Rename /shadow-deep/ combinator to /deep/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/targeted-class-shadow-combinator.html » ('j') | 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 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <style> 3 <style>
4 body /shadow-deep/ .a { width: 100px; height: 100px; background-color: green; } 4 body /deep/ .a { width: 100px; height: 100px; background-color: green; }
5 </style> 5 </style>
6 <script> 6 <script>
7 var inner; 7 var inner;
8 onload = function() { 8 onload = function() {
9 var root = document.getElementById('root'); 9 var root = document.getElementById('root');
10 var shadowContainer = document.createElement('div'); 10 var shadowContainer = document.createElement('div');
11 root.appendChild(shadowContainer); 11 root.appendChild(shadowContainer);
12 12
13 var shadowRoot = shadowContainer.createShadowRoot(); 13 var shadowRoot = shadowContainer.createShadowRoot();
14 var mid = document.createElement('div'); 14 var mid = document.createElement('div');
15 shadowRoot.appendChild(mid); 15 shadowRoot.appendChild(mid);
16 16
17 inner = document.createElement('div'); 17 inner = document.createElement('div');
18 mid.appendChild(inner); 18 mid.appendChild(inner);
19 19
20 inner.offsetTop; 20 inner.offsetTop;
21 inner.classList.add('a'); 21 inner.classList.add('a');
22 shadowContainer.remove(); 22 shadowContainer.remove();
23 root.offsetTop; 23 root.offsetTop;
24 root.appendChild(shadowContainer); 24 root.appendChild(shadowContainer);
25 inner.offsetTop; 25 inner.offsetTop;
26 inner.classList.remove('a'); 26 inner.classList.remove('a');
27 27
28 shouldBe('getComputedStyle(inner).backgroundColor', '"rgba(0, 0, 0, 0)"' ); 28 shouldBe('getComputedStyle(inner).backgroundColor', '"rgba(0, 0, 0, 0)"' );
29 } 29 }
30 </script> 30 </script>
31 <div id="root"></div> 31 <div id="root"></div>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/targeted-class-shadow-combinator.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698