Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <style> | |
| 3 div { | |
| 4 width: 100px; | |
| 5 height: 100px; | |
| 6 background: orange; | |
| 7 } | |
| 8 div::before { | |
| 9 content: ":)"; | |
| 10 transition-property: transform; | |
| 11 transition-duration: 1ms; | |
| 12 | |
| 13 /* Make the pseudo element "transformable" as per | |
| 14 * https://www.w3.org/TR/css-transforms-1/#transformable-element. | |
| 15 */ | |
| 16 display: block; | |
| 17 } | |
| 18 </style> | |
| 19 <div></div> | |
| 20 <script> | |
| 21 if (window.testRunner) | |
| 22 window.testRunner.waitUntilDone(); | |
| 23 | |
| 24 requestAnimationFrame(function(ts) { | |
|
jbroman
2016/07/11 22:01:26
nit: indentation
| |
| 25 document.styleSheets[0].addRule('div::before', 'transform: translateX(20px) '); | |
| 26 requestAnimationFrame(function(ts) { | |
| 27 requestAnimationFrame(function(ts) { | |
| 28 if (window.testRunner) | |
| 29 window.testRunner.notifyDone(); | |
| 30 }); | |
| 31 }); | |
| 32 }); | |
| 33 </script> | |
| OLD | NEW |