retained-dl-animation-on-pseudo-ref.html (356B)
1 <html> 2 <head> 3 <style> 4 body { 5 margin: 0px; 6 } 7 #child { 8 width:100px; 9 height:100px; 10 background-color: green; 11 display: inline-block; 12 } 13 14 #parent::before { 15 content: ''; 16 width: 100px; 17 height: 100px; 18 display: inline-block; 19 background-color: blue; 20 } 21 </style> 22 </head> 23 <body> 24 <div id="parent"> 25 <div id="child"></div> 26 </div> 27 </body> 28 </html>