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

Side by Side Diff: LayoutTests/fast/regions/cssom/get-region-flow-ranges-display-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>
3 <head>
4 <meta charset="utf-8">
5 <script src="../../../resources/js-test.js"></script>
6 <script src="../resources/helper.js"></script>
7 <style>
8 body { font-family: monospace; }
9 #wrapper { font-size: 20px; }
10 .border { border: 1px solid red; }
11 .flow { -webkit-flow-into: flow1;}
12 #wrapper p {margin: 0; padding: 0;}
13 .none {display: none;}
14 #region1 { -webkit-flow-from: flow1; width: 250px; height: 70px; left: 20px; top: 250px;}
15 </style>
16 </head>
17 <body>
18 <div id="description"></div>
19 <div id="wrapper"><div class="flow"><p>1</p><p class="none">2</p><p>3</p><p cl ass="none">4</p><p>5</p></div></div>
20 <div id="region1" class="border"></div>
21 <div id="console"></div>
22 <script>
23 if (window.layoutTestController)
24 layoutTestController.dumpAsText();
25
26 description("[CSSRegions] Implement Region::getRegionFlowRanges for elements with display:none (Range should not break ranges at display:none)");
27 var region1 = document.getElementById("region1");
28
29 debug("Flow test");
30 range1 = region1.webkitGetRegionFlowRanges();
31 shouldEvaluateTo("range1.length", 1);
32 compareArrays(getRangeAt(range1, 0), ["wrapper", 0, "wrapper", 1]);
33
34 function hideRegionsAndFlows() {
35 document.getElementById("region1").style.visibility = "hidden";
36 }
37
38 hideRegionsAndFlows();
39 </script>
40 </body>
41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698