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

Unified Diff: third_party/WebKit/LayoutTests/css3/motion-path/offsetParent.html

Issue 2369143003: CSS Motion Path: offset-position,offset-path establish stacking context (Closed)
Patch Set: concise 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/css3/motion-path/path-establishes-stacking-context.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/css3/motion-path/offsetParent.html
diff --git a/third_party/WebKit/LayoutTests/css3/motion-path/offsetParent.html b/third_party/WebKit/LayoutTests/css3/motion-path/offsetParent.html
new file mode 100644
index 0000000000000000000000000000000000000000..16dd515bc9c0ebc16b03400231f8eb016698f632
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css3/motion-path/offsetParent.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<section id="container" style="will-change: transform">
+ <div id="d1" style="offset-position: 0% 0%">
+ <span id="s1"></span>
+ </div>
+ <div id="d2" style="offset-path: path('m 0 0 z')">
+ <span id="s2"></span>
+ </div>
+ <div id="d3" style="offset-distance: 100%">
+ <span id="s3"></span>
+ </div>
+ <div id="d4" style="offset-rotation: 360deg">
+ <span id="s4"></span>
+ </div>
+ <div id="d5" style="offset-anchor: bottom right">
+ <span id="s5"></span>
+ </div>
+</section>
+<script>
+'use strict';
+test(function() {
+ assert_equals(s1.offsetParent, d1);
+}, "inside offset-position");
+test(function() {
+ assert_equals(s2.offsetParent, d2);
+}, "inside offset-path");
+test(function() {
+ assert_equals(s3.offsetParent, container);
+}, "inside offset-distance");
+test(function() {
+ assert_equals(s4.offsetParent, container);
+}, "inside offset-rotation");
+test(function() {
+ assert_equals(s5.offsetParent, container);
+}, "inside offset-anchor");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/css3/motion-path/path-establishes-stacking-context.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698