| -webkit-transform: translate(100px, 50px); |
| -webkit-transform: matrix(1, 0, 0, 1, 100, 50); |
| <script type="text/javascript"> |
| if (!window.testRunner) { |
| var element1 = document.getElementById(id1); |
| var element2 = document.getElementById(id2); |
| var x1 = webkitConvertPointFromNodeToPage(element1, new WebKitPoint(0,0)).x; |
| var y1 = webkitConvertPointFromNodeToPage(element1, new WebKitPoint(0,0)).y; |
| var x2 = webkitConvertPointFromNodeToPage(element2, new WebKitPoint(0,0)).x; |
| var y2 = webkitConvertPointFromNodeToPage(element2, new WebKitPoint(0,0)).y; |
| if (x1 == x2 && y1 == y2) { |
| resultString += "PASS - Element " + id1 + " and Element " + id2 + " had identical positions"; |
| resultString += "FAIL - Element " + id1 + " and Element " + id2 + " had different positions"; |
| document.body.appendChild(document.createTextNode(resultString)); |
| <body onload="runTest();"> |
| <!-- You should see green box only. If you see red, the test has failed --> |
| <div id='a' class="box translate"></div> |
| <div id='b' class="box matrix"></div> |