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

Unified Diff: third_party/WebKit/LayoutTests/fast/inline/inline-offsetParent-continuation.html

Issue 2448983002: offsetParent() fails to consider continuations when searching for the parent. (Closed)
Patch Set: Added test case. Created 4 years, 2 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 | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/inline/inline-offsetParent-continuation.html
diff --git a/third_party/WebKit/LayoutTests/fast/inline/inline-offsetParent-continuation.html b/third_party/WebKit/LayoutTests/fast/inline/inline-offsetParent-continuation.html
new file mode 100644
index 0000000000000000000000000000000000000000..894dfbc53d9c42b0d4d6488b73c095dfd21083c5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/inline/inline-offsetParent-continuation.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+
+<span id="expectedOffsetParent" style="position:relative;">
+ <div id="elm"></div>
+</span>
+
+<script>
+test(function() {
+ var expectedOffsetParent = document.getElementById("expectedOffsetParent");
+ var actualOffsetParent = document.getElementById("elm").offsetParent;
+
+ assert_true(actualOffsetParent == expectedOffsetParent);
+}, 'offsetParent is correct for a block inside an inline.');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698