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

Unified Diff: third_party/WebKit/LayoutTests/css3/motion-path/use-count-offset-position.html

Issue 2358433005: CSS Motion Path: Use counters for motion properties having effect (Closed)
Patch Set: consumeOffsetPath accepts use counter 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
Index: third_party/WebKit/LayoutTests/css3/motion-path/use-count-offset-position.html
diff --git a/third_party/WebKit/LayoutTests/css3/motion-path/use-count-offset-position.html b/third_party/WebKit/LayoutTests/css3/motion-path/use-count-offset-position.html
new file mode 100644
index 0000000000000000000000000000000000000000..7e9b2a85709493603852779bc4afb01a59569e22
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css3/motion-path/use-count-offset-position.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<head>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ <style>
+ .n { offset-position: auto; }
+ </style>
+</head>
+
+<div id="target"></div>
+<script>
+var CSSMotionInEffect = 1616; // From UseCounter.h
+var CSSOffsetInEffect = 1617; // From UseCounter.h
+
+test(function() {
+ assert_false(internals.isUseCounted(document, CSSOffsetInEffect));
+
+ var styleElement = document.createElement('style');
+ styleElement.textContent = ".p { offset-position: center; }";
+ document.head.appendChild(styleElement);
+
+ assert_true(internals.isUseCounted(document, CSSOffsetInEffect));
+
+ assert_false(internals.isUseCounted(document, CSSMotionInEffect));
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698