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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-transform.html

Issue 2328633003: A container of out-of-flow positioned descendants should be an offsetParent. (Closed)
Patch Set: Created 4 years, 3 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
Index: third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-transform.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-transform.html b/third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-transform.html
new file mode 100644
index 0000000000000000000000000000000000000000..3465aef4645005fb29d421d707841e58aafb2a98
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-transform.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<div id="transform" style="transform:translateX(1px);">
+ <div id="test"></div>
+</div>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<script>
+ test(function() {
+ assert_equals(document.getElementById("test").offsetParent, document.getElementById("transform"));
+ }, "inside transform");
+</script>

Powered by Google App Engine
This is Rietveld 408576698