marker-animate-002.html (470B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title>CSS Test: A Web Animations only apply to restricted properties on ::marker pseudo-elements</title> 4 <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo"> 5 <link rel="match" href="marker-animate-002-ref.html"> 6 <ul> 7 <li>Item</li> 8 </ul> 9 <script> 10 document.querySelector('li').animate({ 11 opacity: [0.1, 0.1], 12 color: ['green', 'green'] 13 }, { 14 pseudoElement: '::marker', 15 duration: Infinity 16 }); 17 </script>