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

Side by Side Diff: LayoutTests/fast/regions/hover-single-flow-from-other.html

Issue 159933010: Remove everything region-specific from LayoutTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
(Empty)
1 <!doctype html>
2 <html lang="en">
3 <head>
4 <style>
5 p, div {
6 font: 12px/1 monospace;
7 }
8 .box {
9 width: 260px;
10 height: 120px;
11 padding: 5px;
12 margin: 10px;
13 }
14
15 #region {
16 -webkit-flow-from: flowNormal;
17 width: 300px;
18 height: 190px;
19 border: 5px solid green;
20 border-left: 100px solid green;
21 background-color: #ddddff;
22 }
23 #region:hover {
24 border-color: darkred;
25 -webkit-flow-from: flowHover;
26 }
27
28 #content1 {
29 -webkit-flow-into: flowNormal;
30 border: 5px solid blue;
31 }
32
33 #content2 {
34 -webkit-flow-into: flowHover;
35 border: 5px solid darkred;
36 position: relative;
37 top: 30px;
38 }
39 </style>
40 </head>
41
42 <script type="text/javascript">
43 if (window.testRunner)
44 testRunner.waitUntilDone();
45
46 function beginTest() {
47 if (window.eventSender) {
48 var region = document.querySelector("#region");
49
50 // move mouse on the hover test object
51 eventSender.mouseMoveTo(region.offsetLeft + 20, region.o ffsetTop + 20);
52 eventSender.mouseDown(0);
53
54 testRunner.notifyDone();
55 }
56 }
57 </script>
58
59 <body onload="beginTest()">
60 <p>When hovering the <span style="color:green"><b>region</b></span>, the <span style="color:blue"><b>blue</b></span> box should disappear and a <span st yle="color:darkred"><b>red</b></span> one should appear instead (the region's <b >flow-from</b> will change to a different thread)</p>
61 <div id="region"></div>
62 <div id="content1" class="box">This box is flowed into the <span style=" color:green"><b>region</b></span> when the region is <b>not</b> hovered</div>
63 <div id="content2" class="box">This box is flowed into the <span style=" color:darkred"><b>region</b></span> when the region <b>is</b> hovered</div>
64 </body>
65 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698