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/region-element-dynamic-detach-flow.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 <style>
5 .region
6 {
7 -webkit-flow-from: no-flow;
8 }
9 </style>
10 </head>
11 <body>
12 <p>Tests that changing a region element into a normal element makes the element's content available.</p>
13 <div class="region">
14 <div id="region_content">This text should be visible when the elemen t is no longer a region.</div>
15 </div>
16 <script>
17 if (window.testRunner)
18 testRunner.dumpAsText();
19 var region = document.getElementsByClassName("region")[0];
20 // The element is a region without a connected flow, its content is not available.
21 var pass = region.innerText.length == 0;
22 // The element becomes a normal element, its content becomes availab le.
23 region.className = "";
24 pass &= region.innerText.length != 0;
25 document.write("<p>" + pass ? "PASS" : "FAIL" + "</p>");
26 </script>
27 </body>
28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698