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

Side by Side Diff: LayoutTests/fast/block/positioning/positioned-movement-layout-when-height-changes-and-descendant-dependent-on-height.html

Issue 802813003: Skip PositionedMovementLayout when descendants depend on element's height (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 years, 11 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <style>
3 body {
4 margin: 0;
5 }
6 #container {
7 position: absolute;
8 height: 154px;
9 width: 20px;
10 overflow: hidden;
11 background-color: blue;
12 }
13 #test {
14 position: absolute;
15 top: 0px;
16 bottom: 0px;
17 left: 0px;
18 right: 0px;
19 height: auto;
20 }
21 .contents {
22 background-color: green;
23 height: 100%;
24 width: 10px;
25 }
26 </style>
27 <script>
28
29 function runTest()
30 {
31 var test = document.getElementById('test');
32 document.body.offsetTop;
33 test.style['top'] = '20px';
34 test.style['bottom'] = '20px';
35 }
36 window.onload = runTest;
37 </script>
38 <div id="top">
39 <div id="container">
40 <div id="test">
41 <div class="contents"></div>
42 </div>
43 </div>
44 </div>
45 Tests positioned movement layout when its height has changed and a descendant de pends on its height.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698