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

Side by Side Diff: LayoutTests/fast/regions/content-flowed-into-regions-no-scroll.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>
3 <!--
4 The content from a flow is displayed into a region. The content fills up the region and the remaining content is not displayed.
5 This test shows that the content in the region cannot be scrolled. On succes s, you should see a green box followed by 'PASS'.
6 -->
7 <head>
8 <style>
9 .box {
10 width: 100px;
11 height: 100px;
12 }
13
14 #flow {
15 -webkit-flow-into: article;
16 }
17
18 #region {
19 -webkit-flow-from: article;
20 overflow: hidden;
21 }
22
23 #greenBox {
24 background-color: green;
25 }
26
27 #redBox {
28 background-color: red;
29 }
30 </style>
31 <script>
32 if (window.testRunner)
33 testRunner.dumpAsText();
34
35 function test()
36 {
37 document.getElementById('redBox').scrollIntoView(false);
38 var element = document.elementFromPoint(50, 50);
39
40 // Check whether the red box was moved upwards.
41 if (element == document.getElementById('redBox'))
42 document.getElementById('result').innerText = "FAIL";
43 }
44 </script>
45 </head>
46 <body onload="test()">
47 <div id="flow">
48 <div id="greenBox" class="box"></div>
49 <div id="redBox" class="box"></div>
50 </div>
51 <div id="region" class="box"></div>
52 <div id="result">PASS</div>
53 </body>
54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698