OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <head> | 2 <head> |
3 <script src="../../resources/testharness.js"></script> | 3 <script src="../../resources/testharness.js"></script> |
4 <script src="../../resources/testharnessreport.js"></script> | 4 <script src="../../resources/testharnessreport.js"></script> |
5 </head> | 5 </head> |
6 | 6 |
7 <div id="target" class="p"></div> | 7 <div id="target" class="p"></div> |
8 <script> | 8 <script> |
9 test(function() { | 9 test(function() { |
10 assert_false(internals.isCSSPropertyUseCounted(document, "offset-rotate")); | 10 assert_false(internals.isCSSPropertyUseCounted(document, "offset-rotate")); |
11 | 11 |
12 var styleElement = document.createElement('style'); | 12 var styleElement = document.createElement('style'); |
13 styleElement.textContent = ".p { offset-rotate: 0deg; }"; | 13 styleElement.textContent = ".p { offset-rotate: 0deg; }"; |
14 document.head.appendChild(styleElement); | 14 document.head.appendChild(styleElement); |
15 getComputedStyle(target); | 15 getComputedStyle(target); |
16 | 16 |
17 assert_true(internals.isCSSPropertyUseCounted(document, "offset-rotate")); | 17 assert_true(internals.isCSSPropertyUseCounted(document, "offset-rotate")); |
18 assert_false(internals.isCSSPropertyUseCounted(document, "offset-rotation")); | |
19 }); | 18 }); |
20 </script> | 19 </script> |
OLD | NEW |