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

Unified Diff: third_party/WebKit/LayoutTests/fast/block/basic/fieldset-stretch-to-legend.html

Issue 2396813002: Support margin-top for legend in fieldset. (Closed)
Patch Set: Rebased to master. Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/block/basic/fieldset-stretch-to-legend-expected.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/block/basic/fieldset-stretch-to-legend.html
diff --git a/third_party/WebKit/LayoutTests/fast/block/basic/fieldset-stretch-to-legend.html b/third_party/WebKit/LayoutTests/fast/block/basic/fieldset-stretch-to-legend.html
index db24e16a238db3c641a56430dfe0b4b916acd25e..a551a46f0dd12c5dd5613af792424572eda4133b 100644
--- a/third_party/WebKit/LayoutTests/fast/block/basic/fieldset-stretch-to-legend.html
+++ b/third_party/WebKit/LayoutTests/fast/block/basic/fieldset-stretch-to-legend.html
@@ -7,79 +7,86 @@
fieldset.render { border: 8px double; }
fieldset.render legend { height: 12px; width: 50px; background-color: rgba(0, 128, 0, 0.3); border: none; }
div.rel { position: relative; height: 40px; }
+ #col1 { float: left; }
+ #col2 { margin-left: 450px; }
</style>
</head>
<body>
<!-- border rendering tests -->
- <fieldset class="render" style="width: 100px;">
- <legend></legend>
- </fieldset>
- <fieldset class="render" style="width: 100px;">
- <legend style="width: 108%;"></legend>
- </fieldset>
- <fieldset class="render" style="width: 100px;">
- <legend style="width: 112%;"></legend>
- </fieldset>
- <fieldset class="render" style="width: 100px;">
- <legend style="width: 117%;"></legend>
- </fieldset>
- <fieldset class="render" style="width: 100px;">
- <legend style="margin-left: -12px;"></legend>
- </fieldset>
- <fieldset class="render" style="width: 100px;">
- <legend style="margin-left: -16px;"></legend>
- </fieldset>
- <fieldset class="render" style="width: 100px;">
- <legend style="margin-left: -21px;"></legend>
- </fieldset>
- <fieldset class="render" style="width: 100px;">
- <legend style="margin-left: -69px;"></legend>
- </fieldset>
- <fieldset class="render" style="width: 100px;">
- <legend style="margin-left: -74px;"></legend>
- </fieldset>
- <fieldset class="render" style="width: 100px;">
- <legend style="margin-left: 115%;"></legend>
- </fieldset>
- <fieldset class="render" style="width: 100px;">
- <legend style="margin-left: 120%;"></legend>
- </fieldset>
- <!-- layout tests -->
- <fieldset style="width: 100px;">
- <legend style="width: 150px;"></legend>
- </fieldset>
- <fieldset style="width: 100px;">
- <legend style="width: 90px; margin: 30px;"></legend>
- </fieldset>
- <div class="rel" style="width: 100px;">
- <fieldset>
- <legend style="width: 150px;"></legend>
+ <div id="col1">
+ <!-- border rendering tests -->
+ <fieldset class="render" style="width: 100px;">
+ <legend></legend>
</fieldset>
- </div>
- <div class="rel" style="width: 300px;">
- <fieldset style="width: 100; margin: auto;">
- <legend style="width: 150px;"></legend>
+ <fieldset class="render" style="width: 100px;">
+ <legend style="width: 108%;"></legend>
</fieldset>
- </div>
- <div class="rel" style="width: 100px;">
- <fieldset style="position: absolute;">
- <legend style="width: 150px;"></legend>
+ <fieldset class="render" style="width: 100px;">
+ <legend style="width: 112%;"></legend>
+ </fieldset>
+ <fieldset class="render" style="width: 100px;">
+ <legend style="width: 117%;"></legend>
+ </fieldset>
+ <fieldset class="render" style="width: 100px;">
+ <legend style="margin-left: -12px;"></legend>
+ </fieldset>
+ <fieldset class="render" style="width: 100px;">
+ <legend style="margin-left: -16px;"></legend>
+ </fieldset>
+ <fieldset class="render" style="width: 100px;">
+ <legend style="margin-left: -21px;"></legend>
+ </fieldset>
+ <fieldset class="render" style="width: 100px;">
+ <legend style="margin-left: -69px;"></legend>
+ </fieldset>
+ <fieldset class="render" style="width: 100px;">
+ <legend style="margin-left: -74px;"></legend>
+ </fieldset>
+ <fieldset class="render" style="width: 100px;">
+ <legend style="margin-left: 115%;"></legend>
+ </fieldset>
+ <fieldset class="render" style="width: 100px;">
+ <legend style="margin-left: 120%;"></legend>
</fieldset>
</div>
- <div class="rel">
- <fieldset style="position: absolute; width: 100px;">
+ <!-- layout tests -->
+ <div id="col2">
+ <fieldset style="width: 100px;">
<legend style="width: 150px;"></legend>
</fieldset>
- </div>
- <div class="rel" style="width: 300px;">
- <fieldset style="position: absolute; left: 100px; right: 100px;">
+ <fieldset style="width: 100px;">
+ <legend style="width: 90px; margin: 30px;"></legend>
+ </fieldset>
+ <div class="rel" style="width: 100px;">
+ <fieldset>
+ <legend style="width: 150px;"></legend>
+ </fieldset>
+ </div>
+ <div class="rel" style="width: 300px;">
+ <fieldset style="width: 100; margin: auto;">
+ <legend style="width: 150px;"></legend>
+ </fieldset>
+ </div>
+ <div class="rel" style="width: 100px;">
+ <fieldset style="position: absolute;">
+ <legend style="width: 150px;"></legend>
+ </fieldset>
+ </div>
+ <div class="rel">
+ <fieldset style="position: absolute; width: 100px;">
+ <legend style="width: 150px;"></legend>
+ </fieldset>
+ </div>
+ <div class="rel" style="width: 300px;">
+ <fieldset style="position: absolute; left: 100px; right: 100px;">
+ <legend style="width: 150px;"></legend>
+ </fieldset>
+ </div>
+ <fieldset style="display: inline; width: 100px;">
<legend style="width: 150px;"></legend>
</fieldset>
+ <fieldset style="width: 100px;">
+ <legend style="width: 150%;"></legend>
+ </fieldset>
</div>
- <fieldset style="display: inline; width: 100px;">
- <legend style="width: 150px;"></legend>
- </fieldset>
- <fieldset style="width: 100px;">
- <legend style="width: 150%;"></legend>
- </fieldset>
</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/block/basic/fieldset-stretch-to-legend-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698