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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-2.html

Issue 2531953002: Detect floats to avoid or clear due to negative margin top (Closed)
Patch Set: bug 666487 Created 4 years 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 <style>
3 body { margin: 0px; }
4 .float { float: left; width: 50px; height: 100px; background: green;}
5 .content { overflow: hidden; margin-top: -100px; width: 50px; height: 100px; bac kground: green;}
6 .container { width: 100px; background: red;}
7 </style>
8 <p>crbug.com/666487: There should be a green square below.</p>
9 <div class="container">
10 <div class="float"></div>
11 <br clear=all>
12 <div style="width: 20px; height; 1px"></div>
13 <div class="content" data-offset-x=50></div>
14 </div>
15 <script src="../../../resources/check-layout.js"></script>
16 <script>
17 checkLayout('.content');
18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698