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

Side by Side Diff: LayoutTests/fast/html/navigation-transition.html

Issue 281383006: Navigation transitions: Added createStyledMarkupForNavigationTransition (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review fixes Created 6 years, 5 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 | « no previous file | LayoutTests/fast/html/navigation-transition-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <meta name="transition-elements" content="#transitionElement,#boxTransitionEleme nt;*">
4 <script src="../../resources/js-test.js"></script>
5 <script>
6
7 description('Tests for the HTML markup serializer used for transition elements') ;
8 jsTestIsAsync = true;
9
10 window.onload = function() {
11 if (window.internals) {
12 var serializedHTML = internals.serializeNavigationMarkup(document);
13 var testiframe = document.getElementById('testiframe');
14 testiframe.contentDocument.write(serializedHTML);
15
16 sourceElement = document.getElementById('boxTransitionElement');
17 destElement = testiframe.contentDocument.getElementById('boxTransitionEl ement');
18
19 sourceElementRect = sourceElement.getBoundingClientRect();
20 shouldBe('sourceElementRect.top', 'destElement.offsetTop');
21 shouldBe('sourceElementRect.left', 'destElement.offsetLeft');
22 shouldBe('sourceElementRect.height', 'destElement.offsetHeight');
23 shouldBe('sourceElementRect.width', 'destElement.offsetWidth');
24
25 finishJSTest();
26 }
27 }
28 </script>
29
30 <style>
31
32 body {
33 background: white;
34 margin-height: 0px;
35 margin-width: 0px;
36 }
37
38 #wrappingElement {
39 background: gray;
40 padding: 13px 20px 8px 30px;
41 border-style: solid;
42 border-width: 5px;
43 width: 400px;
44 margin: 44px 2px 13px 30px;
45 }
46
47 #transitionElement {
48 padding-bottom: 0px;
49 }
50
51 #boxTransitionElement {
52 background: red;
53 padding: 8px 50px 50px 18px;
54 border-style: solid;
55 border-width: 30px;
56 margin: 55px 15px 25px 135px;
57 }
58
59 #blueBox {
60 padding: 25px 75px 50px 100px;
61 }
62
63 #testiframe {
64 width: 100%;
65 height: 600px;
66 background: gray;
67 border-width: 0px;
68 }
69
70 </style>
71
72 <div id="wrappingElement">
73 <div id="transitionElement">This text should appear twice.</div>
74
75 <div id="boxTransitionElement">
76 <img id="blueBox" src="resources/images/blue.png">
77 </div>
78 </div>
79
80 <iframe id="testiframe"></iframe>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/html/navigation-transition-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698