| Index: LayoutTests/fast/inline/reattach-inlines-in-anonymous-blocks-with-out-of-flow-siblings.html
|
| diff --git a/LayoutTests/fast/inline/reattach-inlines-in-anonymous-blocks-with-out-of-flow-siblings.html b/LayoutTests/fast/inline/reattach-inlines-in-anonymous-blocks-with-out-of-flow-siblings.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..40d9c8a89929627a093ff322d7a119c690e3aa5f
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/inline/reattach-inlines-in-anonymous-blocks-with-out-of-flow-siblings.html
|
| @@ -0,0 +1,38 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<style>
|
| +.absolute {
|
| + position: absolute;
|
| +}
|
| +
|
| +.inlineBlock {
|
| + display: inline-block;
|
| +}
|
| +</style>
|
| +<script src="../../resources/js-test.js"></script>
|
| +</head>
|
| +<body>
|
| +<p id="console"></p>
|
| +<p>
|
| + <span></span><div>1</div>
|
| + <span></span><div>2</div>
|
| + <span></span><div>3</div>
|
| +</p>
|
| +<script>
|
| +function applyClass(items, className) {
|
| + for (var i = items.length - 1; i >= 0; i--) {
|
| + items[i].classList.add(className)
|
| + };
|
| +};
|
| +
|
| +description("The numbers below should be on the same line.")
|
| +
|
| +document.body.offsetTop;
|
| +var divs = document.getElementsByTagName("div");
|
| +var spans = document.getElementsByTagName("span");
|
| +applyClass(spans, "absolute");
|
| +applyClass(divs, "inlineBlock");
|
| +shouldBe("divs[2].offsetTop", "divs[0].offsetTop");
|
| +</script>
|
| +</body>
|
|
|