| 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>
|
|
|