| OLD | NEW |
| 1 <?xml version="1.0"?> | 1 <?xml version="1.0"?> |
| 2 <!-- This a 1-1 copy of pointer-events-text.svg tests with the addition of -webk
it-transform --> | 2 <!-- This a 1-1 copy of pointer-events-text.svg tests with the addition of -webk
it-transform --> |
| 3 <svg xmlns="http://www.w3.org/2000/svg" onload="fillTestContent()"> | 3 <svg xmlns="http://www.w3.org/2000/svg" onload="fillTestContent()"> |
| 4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
| 5 <![CDATA[ | 5 <![CDATA[ |
| 6 | 6 |
| 7 if (window.testRunner) | 7 if (window.testRunner) |
| 8 testRunner.waitUntilDone(); | 8 testRunner.waitUntilDone(); |
| 9 | 9 |
| 10 var visibleValues = [ 'visible', 'hidden' ]; | 10 var visibleValues = [ 'visible', 'hidden' ]; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 var identString = "_" + pi + "_" + vi + "_" + fi + "_" + si; | 45 var identString = "_" + pi + "_" + vi + "_" + fi + "_" + si; |
| 46 | 46 |
| 47 var txt = document.createElementNS(svgNS, 'text'); | 47 var txt = document.createElementNS(svgNS, 'text'); |
| 48 txt.setAttribute('x', xOffset/2); | 48 txt.setAttribute('x', xOffset/2); |
| 49 txt.setAttribute('y', yOffset/2 + 15); | 49 txt.setAttribute('y', yOffset/2 + 15); |
| 50 txt.setAttribute('font-size', 20); | 50 txt.setAttribute('font-size', 20); |
| 51 txt.setAttribute('visibility', visibleValues[vi]); | 51 txt.setAttribute('visibility', visibleValues[vi]); |
| 52 txt.setAttribute('fill', fillValues[fi]); | 52 txt.setAttribute('fill', fillValues[fi]); |
| 53 txt.setAttribute('stroke', strokeValues[si]); | 53 txt.setAttribute('stroke', strokeValues[si]); |
| 54 txt.setAttribute('pointer-events', pointerEventsValues[pi]); | 54 txt.setAttribute('pointer-events', pointerEventsValues[pi]); |
| 55 txt.setAttribute('style', "-webkit-transform: scale(2)"); | 55 txt.setAttribute('style', "transform: scale(2)"); |
| 56 txt.setAttribute('onclick', 'clickHit(evt, "' + identString + '")'
); | 56 txt.setAttribute('onclick', 'clickHit(evt, "' + identString + '")'
); |
| 57 txt.appendChild(document.createTextNode("#")); | 57 txt.appendChild(document.createTextNode("#")); |
| 58 | 58 |
| 59 testContent.appendChild(txt); | 59 testContent.appendChild(txt); |
| 60 | 60 |
| 61 var fillText = document.createElementNS(svgNS, 'text'); | 61 var fillText = document.createElementNS(svgNS, 'text'); |
| 62 fillText.setAttribute('x', xOffset + 5); | 62 fillText.setAttribute('x', xOffset + 5); |
| 63 fillText.setAttribute('y', yOffset + 20); | 63 fillText.setAttribute('y', yOffset + 20); |
| 64 fillText.textContent = "miss"; | 64 fillText.textContent = "miss"; |
| 65 fillText.setAttribute('id', 'fill-text' + identString); | 65 fillText.setAttribute('id', 'fill-text' + identString); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 83 if (window.testRunner) | 83 if (window.testRunner) |
| 84 testRunner.notifyDone(); | 84 testRunner.notifyDone(); |
| 85 } | 85 } |
| 86 ]]> | 86 ]]> |
| 87 </script> | 87 </script> |
| 88 | 88 |
| 89 <text x="110" y="20">Visibility: visible</text> | 89 <text x="110" y="20">Visibility: visible</text> |
| 90 <text x="340" y="20">Visibility: hidden</text> | 90 <text x="340" y="20">Visibility: hidden</text> |
| 91 <g id="test-content"/> | 91 <g id="test-content"/> |
| 92 </svg> | 92 </svg> |
| OLD | NEW |