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

Unified Diff: third_party/WebKit/LayoutTests/css3/motion-path/property-use-count-offset-rotate.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-offset-rotate.html
diff --git a/third_party/WebKit/LayoutTests/css3/motion-path/property-use-count-offset-rotate.html b/third_party/WebKit/LayoutTests/css3/motion-path/property-use-count-offset-rotate.html
new file mode 100644
index 0000000000000000000000000000000000000000..34d93fe6c6977fbc6661e8c203fca8ab59f209b1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css3/motion-path/property-use-count-offset-rotate.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, "offset-rotate"));
+
+ var styleElement = document.createElement('style');
+ styleElement.textContent = ".p { offset-rotate: 0deg; }";
+ document.head.appendChild(styleElement);
+ getComputedStyle(target);
+
+ assert_true(internals.isCSSPropertyUseCounted(document, "offset-rotate"));
+ assert_false(internals.isCSSPropertyUseCounted(document, "motion-rotation"));
+ assert_false(internals.isCSSPropertyUseCounted(document, "offset-rotation"));
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698