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

Unified Diff: LayoutTests/fast/block/basic/fieldset-with-legend.html

Issue 1173853005: LayoutFieldSet::computePreferredLogicalWidths uses marginLeft for marginRight by mistake Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding Layout Tests after removing the functions Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/block/basic/fieldset-with-legend.html
diff --git a/LayoutTests/fast/block/basic/fieldset-with-legend.html b/LayoutTests/fast/block/basic/fieldset-with-legend.html
new file mode 100644
index 0000000000000000000000000000000000000000..9f8654f5828b798c77593f294859707d6656742c
--- /dev/null
+++ b/LayoutTests/fast/block/basic/fieldset-with-legend.html
@@ -0,0 +1,31 @@
+<style>
+ legend { height: 10px; border: 1px solid blue; }
+ fieldset { margin-bottom: 10px;border: 2px solid green; }
+ div.rel { position: relative; height: 100px;border:2px solid red; }
+ </style>
+<body>
+ <div class="rel" style="width: 500px;">
+ <fieldset style="position: absolute;margin-left:20px;">
+ <legend style="width: 150px;margin-left:10px;margin-right:20px"></legend>
+ <h1 style="background-color:green;margin:5px">HEADING 1</h1>
+ </fieldset>
+ </div>
+ <div class="rel" style="width: 500px;">
+ <fieldset style="position: absolute;margin-left:40px;">
+ <legend style="width: 150px;margin-left:10px;margin-right:20px"></legend>
+ <h1 style="background-color:green;margin:5px">HEADING 1</h1>
+ </fieldset>
+ </div>
+ <div class="rel" style="width: 500px;margin-left :20px;">
+ <fieldset style="position: absolute;margin-left:-20px;">
+ <legend style="width: 150px;margin-left:10px;margin-right:20px"></legend>
+ <h1 style="background-color:green;margin:5px">HEADING 1</h1>
+ </fieldset>
+ </div>
+ <div class="rel" style="width: 500px;">
+ <fieldset style="position: absolute;width:500px;margin-left:20px;margin-right:20px;">
+ <legend style="width: 150px;margin-left:10px;margin-right:20px"></legend>
+ <h1 style="background-color:green;margin:5px">HEADING 1</h1>
+ </fieldset>
+ </div>
+</body>
« no previous file with comments | « no previous file | LayoutTests/fast/block/basic/fieldset-with-legend-expected.png » ('j') | Source/core/layout/LayoutFieldset.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698