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

Side by Side Diff: third_party/WebKit/LayoutTests/css3/motion-path/use-count-motion.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/css3/motion-path/use-count-motion-path.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 { motion: none; }
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, CSSMotionInEffect));
17
18 var styleElement = document.createElement('style');
19 styleElement.textContent = ".p { motion: path('m 0 0 h 1'); }";
20 document.head.appendChild(styleElement);
21
22 assert_true(internals.isUseCounted(document, CSSMotionInEffect));
23
24 assert_false(internals.isUseCounted(document, CSSOffsetInEffect));
25 });
26 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/css3/motion-path/use-count-motion-path.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698