| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <style> | 3 <style> |
| 4 * { font-size: 16px; } | 4 * { font-size: 16px; } |
| 5 div { font-size: 8px; } | 5 div { font-size: 8px; } |
| 6 </style> | 6 </style> |
| 7 <body> | 7 <body> |
| 8 <script src="../js/resources/js-test-pre.js"></script> | 8 <script src="../../resources/js-test.js"></script> |
| 9 <script> | 9 <script> |
| 10 description('Test clip-path IRIs'); | 10 description('Test clip-path IRIs'); |
| 11 | 11 |
| 12 function computedStyle(property, value) { | 12 function computedStyle(property, value) { |
| 13 var div = document.createElement("div"); | 13 var div = document.createElement("div"); |
| 14 document.body.appendChild(div); | 14 document.body.appendChild(div); |
| 15 div.style.setProperty(property, value); | 15 div.style.setProperty(property, value); |
| 16 var computedValue = getComputedStyle(div).getPropertyValue(property); | 16 var computedValue = getComputedStyle(div).getPropertyValue(property); |
| 17 document.body.removeChild(div); | 17 document.body.removeChild(div); |
| 18 return computedValue; | 18 return computedValue; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 testInner("-webkit-clip-path", "url(#clip1)", "url(#clip1)"); | 38 testInner("-webkit-clip-path", "url(#clip1)", "url(#clip1)"); |
| 39 testInner("-webkit-clip-path", "url(clip.svg#clip1)", "url(clip.svg#clip1)"); | 39 testInner("-webkit-clip-path", "url(clip.svg#clip1)", "url(clip.svg#clip1)"); |
| 40 | 40 |
| 41 testComputed("-webkit-clip-path", "url(#clip1)", "url(#clip1)"); | 41 testComputed("-webkit-clip-path", "url(#clip1)", "url(#clip1)"); |
| 42 testComputed("-webkit-clip-path", "url(clip.svg#clip1)", "url(clip.svg#clip1)"); | 42 testComputed("-webkit-clip-path", "url(clip.svg#clip1)", "url(clip.svg#clip1)"); |
| 43 | 43 |
| 44 </script> | 44 </script> |
| 45 </body> | 45 </body> |
| 46 </html> | 46 </html> |
| OLD | NEW |