OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <style> |
| 4 * { |
| 5 transition-timing-function: cubic-bezier(0, 0, calc(0.5), calc(1.0)); |
| 6 } |
| 7 </style> |
| 8 </head> |
| 9 <body> |
| 10 <p>This tests that calc() values in cubic-bezier functions are read correctl
y.</p> |
| 11 <p id="result"></p> |
| 12 </body> |
| 13 <script> |
| 14 if (window.testRunner) |
| 15 testRunner.dumpAsText(); |
| 16 |
| 17 var body = document.getElementsByTagName("body")[0]; |
| 18 if (window.getComputedStyle(body)["transitionTimingFunction"] == "cubic-bezi
er(0, 0, 0.5, 1)") |
| 19 document.getElementById("result").innerText = "PASS"; |
| 20 else |
| 21 document.getElementById("result").innerText = "FAIL"; |
| 22 </script> |
| 23 </html> |
OLD | NEW |