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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <head>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <style>
6 .n { offset-position: auto; }
7 </style>
8 </head>
9
10 <div id="target"></div>
11 <script>
12 var CSSMotionInEffect = 1616; // From UseCounter.h
13 var CSSOffsetInEffect = 1617; // From UseCounter.h
14
15 test(function() {
16 assert_false(internals.isUseCounted(document, CSSOffsetInEffect));
17
18 var styleElement = document.createElement('style');
19 styleElement.textContent = ".p { offset-position: center; }";
20 document.head.appendChild(styleElement);
21
22 assert_true(internals.isUseCounted(document, CSSOffsetInEffect));
23
24 assert_false(internals.isUseCounted(document, CSSMotionInEffect));
25 });
26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698