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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/block/over-constrained-auto-margin.html

Issue 2841823006: Resolve inline margins in over-constrained situations correctly. (Closed)
Patch Set: Resolve inline margins in over-constrained situations correctly. Created 3 years, 7 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
« no previous file with comments | « AUTHORS ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('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 <div style="width: 400px; border: 3px solid black;">
3 <div id="target1" style="
4 margin-left: 10px; width: 500px; border: 3px solid gray;
5 margin-right: auto;">
6 </div>
7 </div>
8 <div style="width: 400px; border: 3px solid black; direction: rtl;">
9 <div id="target2" style="
10 margin-right: 10px; width: 500px; border: 3px solid gray;
11 margin-left: auto; ">
12 </div>
13 </div>
14 <script src="../../resources/testharness.js"></script>
15 <script src="../../resources/testharnessreport.js"></script>
16 <script>
17 test(() => {
18 assert_equals(getComputedStyle(target1).marginRight, "-116px");
19 assert_equals(getComputedStyle(target2).marginLeft, "-116px");
20 }, "Right-aligned float in zero-width block");
21 </script>
OLDNEW
« no previous file with comments | « AUTHORS ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698