Chromium Code Reviews

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-will-change.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.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-will-change.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-will-change.html b/third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-will-change.html
new file mode 100644
index 0000000000000000000000000000000000000000..49e41e43364b40259ec7065878320a32ef272182
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-will-change.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<div id="will-change-transform" style="will-change:transform;">
+ <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("will-change-transform"));
+ }, "inside will-change:transform");
+</script>

Powered by Google App Engine