| Index: LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-continuation-on-line.html
|
| diff --git a/LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-continuation-on-line.html b/LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-continuation-on-line.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2584780cf07ae082a68bb17569e2abc7be9c4e8e
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-continuation-on-line.html
|
| @@ -0,0 +1,31 @@
|
| +<!DOCTYPE html>
|
| +<style>
|
| + body {
|
| + margin: 0;
|
| + padding: 0;
|
| + }
|
| + #container {
|
| + position: relative;
|
| + background: #ccc;
|
| + font: 20px Ahem;
|
| + }
|
| + #floater {
|
| + float: none;
|
| + }
|
| +</style>
|
| +<body>
|
| + <p> When a block element becomes a float we should not strip anonymous blocks wrapping its inline siblings if there are other blocks on the
|
| + line. In this test case, the block is wrapped in an anonymous block as part of a continuation.</p>
|
| + <div id="container">
|
| + <span>
|
| + <p>Text</p>
|
| + </span>
|
| + <dd id="floater"></dd>
|
| + </div>
|
| + <script>
|
| + document.body.offsetTop;
|
| + document.getElementById('floater').style.float = 'right';
|
| + </script>
|
| +</body>
|
| +
|
| +
|
|
|