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

Side by Side Diff: LayoutTests/fast/block/containing-block-negative-margins.html

Issue 570933002: Margins should expand/shrink an element's width if no float constrains it (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/fast/block/containing-block-negative-margins-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <style>
3 body {
4 margin-left: 200px;
5 width: 35em;
6 }
7 div.floater {
8 float: right;
9 width: 20em;
10 margin-right: -23em;
11 margin-bottom: 1em;
12 }
13 table {
14 background-color: green;
15 }
16 #expands {
17 margin-left: -200px;
18 margin-right: -200px;
19 }
20 #shrinks {
21 margin-left: 200px;
22 margin-right: 200px;
23 }
24
25 td {
26 width: 1500px;
27 }
28
29 </style>
30 <div style="position: absolute">crbug.com/413202: Margins can expand/shrink the width of an element if a float does not constrain it.</div>
31 <div class="floater"></div>
32 <table id="expands" data-expected-client-width="960">
33 <tr>
34 <td></td>
35 </tr>
36 </table>
37 <table id="shrinks" data-expected-client-width="160">
38 <tr>
39 <td></td>
40 </tr>
41 </table>
42 <script src="../../resources/check-layout.js"></script>
43 <script>
44 document.body.offsetLeft;
45 checkLayout("#expands");
46 checkLayout("#shrinks");
47 </script>
48
49
50
51
52
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/block/containing-block-negative-margins-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698