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

Unified Diff: LayoutTests/fast/forms/legend-absolute-position-auto-width.html

Issue 156623004: Positioned <legend> element should honor width: auto (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 | LayoutTests/fast/forms/legend-absolute-position-auto-width-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/legend-absolute-position-auto-width.html
diff --git a/LayoutTests/fast/forms/legend-absolute-position-auto-width.html b/LayoutTests/fast/forms/legend-absolute-position-auto-width.html
new file mode 100644
index 0000000000000000000000000000000000000000..1686aa14b49b7762e94758250369b5b8e07deada
--- /dev/null
+++ b/LayoutTests/fast/forms/legend-absolute-position-auto-width.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../resources/js-test.js"></script>
+<style>
+fieldset {
+ position: relative;
+ padding-top: 30px;
+ padding-left: 0px;
+ padding-right: 0px;
+ width: 200px;
+ border: 1px solid green;
+}
+legend {
+ background: green;
+ left: 0;
+ right: 0;
+ top: 0;
+ position: absolute;
+ width: auto;
+}
+</style>
+<body>
+ <fieldset>
+ <legend id="legend">Legend</legend>
+ <div>Fieldset content</div>
+ </fieldset>
+</body>
+<script>
+description("This test checks the absolute postioned legend element to honor auto width.");
+shouldBe('legend.offsetWidth', '200');
+shouldBe('legend.clientWidth', '200');
+</script>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/forms/legend-absolute-position-auto-width-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698