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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-4.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>
11 <div class="float"></div>
12 <br clear=all>
13 </div>
14 <div style="float:left;"></div>
15 <div class="content" data-offset-x=50></div>
16 </div>
17 <script src="../../../resources/check-layout.js"></script>
18 <script>
19 checkLayout('.content');
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698