| <!DOCTYPE html> |
| <meta charset="UTF-8"> |
| <style> |
| .parent { |
| perspective-origin: 30px 10px; |
| } |
| .target { |
| display: inline-block; |
| -webkit-perspective: 50; |
| perspective: 50; |
| margin-top: 50px; |
| margin-bottom: 25px; |
| perspective-origin: 10px 30px; |
| } |
| .transformed { |
| width: 50px; |
| height: 50px; |
| background: black; |
| transform: rotateY(45deg); |
| } |
| .expected .transformed { |
| background: green; |
| } |
| .expected { |
| position: relative; |
| left: -50px; |
| opacity: 0.75; |
| } |
| </style> |
| <body> |
| <template id="target-template"> |
| <div><div class="transformed"></div></div> |
| </template> |
| <script src="resources/interpolation-test.js"></script> |
| <script> |
| // Regression test for https://crbug.com/984700 |
| assertInterpolation({ |
| property: 'perspective-origin', |
| from: '20% 25%', |
| to: '40% 50%', |
| }, [ |
| {at: 3.40282e+38, is: '3.35544e+07px 3.35544e+07px'} |
| ]); |
| </script> |
| </body> |