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

Side by Side Diff: LayoutTests/fast/regions/hover-single-flow-from-none.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: flow;
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: none;
26 }
27
28 #content {
29 -webkit-flow-into: flow;
30 border: 5px solid blue;
31 }
32 </style>
33 </head>
34
35 <script type="text/javascript">
36 if (window.testRunner)
37 testRunner.waitUntilDone();
38
39 function beginTest() {
40 if (window.eventSender) {
41 var region = document.querySelector("#region");
42
43 // move mouse on the hover test object
44 eventSender.mouseMoveTo(region.offsetLeft + 20, region.o ffsetTop + 20);
45 eventSender.mouseDown(0);
46
47 testRunner.notifyDone();
48 }
49 }
50 </script>
51
52 <body onload="beginTest()">
53 <p>When hovering the <span style="color:green"><b>region</b></span>, the <span style="color:blue"><b>blue</b></span> box should disappear (the region's <b>flow-from</b> will change to "none")</p>
54 <div id="region"></div>
55 <div id="content" class="box">This box is flowed into the <span style="c olor:green"><b>region</b></span></div>
56 </body>
57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698