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

Unified Diff: third_party/WebKit/LayoutTests/css3/motion-path/property-use-count-motion-rotation.html

Issue 2554263002: CSS Motion Path: Use counter for offset-rotate (Closed)
Patch Set: tests Created 4 years 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/property-use-count-motion-rotation.html
diff --git a/third_party/WebKit/LayoutTests/css3/motion-path/property-use-count-motion-rotation.html b/third_party/WebKit/LayoutTests/css3/motion-path/property-use-count-motion-rotation.html
new file mode 100644
index 0000000000000000000000000000000000000000..3c696f11f61fadfaf9815ba2a815dc5f69dcfebe
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css3/motion-path/property-use-count-motion-rotation.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<head>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+</head>
+
+<div id="target" class="p"></div>
+<script>
+test(function() {
+ assert_false(internals.isCSSPropertyUseCounted(document, "motion-rotation"));
+
+ var styleElement = document.createElement('style');
+ styleElement.textContent = ".p { motion-rotation: 0deg; }";
+ document.head.appendChild(styleElement);
+ getComputedStyle(target);
+
+ assert_true(internals.isCSSPropertyUseCounted(document, "motion-rotation"));
+ assert_false(internals.isCSSPropertyUseCounted(document, "offset-rotation"));
+ assert_false(internals.isCSSPropertyUseCounted(document, "offset-rotate"));
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698