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

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: In regular block layout, the width of a child's margin box should always be equal to that of its co… 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
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

Powered by Google App Engine
This is Rietveld 408576698