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

Unified Diff: LayoutTests/fast/inline/reattach-inlines-in-anonymous-blocks-with-out-of-flow-siblings.html

Issue 120603002: Fix render tree creation in blocks with multiple anonymous blocks and mixed inlines/out of flow chi… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed markup Created 7 years 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/inline/reattach-inlines-in-anonymous-blocks-with-out-of-flow-siblings-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/inline/reattach-inlines-in-anonymous-blocks-with-out-of-flow-siblings-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698