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

Unified Diff: third_party/WebKit/LayoutTests/css3/motion-path/use-count-offset.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.html
diff --git a/third_party/WebKit/LayoutTests/css3/motion-path/use-count-offset.html b/third_party/WebKit/LayoutTests/css3/motion-path/use-count-offset.html
new file mode 100644
index 0000000000000000000000000000000000000000..9eb71881eca3df397b800ee8e1a0c388b642b7e6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css3/motion-path/use-count-offset.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<head>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ <style>
+ .n { offset: none; }
+ </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: path('m 0 0 h 1') 0px auto; }";
+ 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