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