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

Side by Side Diff: LayoutTests/fast/regions/auto-size/autoheight-abspos-bottom-align-maxheight.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 #content { -webkit-flow-into: flow; }
6 #region { -webkit-flow-from: flow; position: absolute; bottom: 0px; right: 0px; width: 100px; background-color: green; max-height: 100px; }
7 #reference { position: absolute; bottom: 0px; right: 0px; width: 100 px; background-color: red; height: 100px; }
8 </style>
9 </head>
10 <script src="../../../resources/check-layout.js"></script>
11 <body onload="checkLayout('#region')">
12 <p>Test that an auto-height region, absolutely positioned with bottom 0, is correctly sized and positioned when the region has max-height defined.</p>
13 <p>On success you should see PASS below and a green rectangle in the low er right corner.</p>
14 <div id="content">
15 <div style="width: 100px; height: 50px;"></div>
16 <div style="width: 100px; height: 50px;"></div>
17 <div style="width: 100px; height: 50px;"></div>
18 </div>
19 <div id="reference"></div>
20 <div id="region" data-total-y=0></div>
21 <script>
22 var referenceOffsetTop = document.getElementById('reference').offset Top;
23 document.getElementById("region").setAttribute("data-total-y", refer enceOffsetTop);
24 </script>
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698