| <title>Testing loading a CSS shape outside with resource cache</title> |
| var sheet = window.document.styleSheets[0]; |
| sheet.insertRule("#image-with-shape {-webkit-shape-outside: url('/security/resources/allow-if-origin.php?name=rgbalpha.png');-webkit-shape-image-threshold: 0.4;float: left;}", sheet.cssRules.length); |
| Test is passing if the two following text lines are not vertically aligned, the second one being closer to the red region of the image. |
| <img id="image-with-shape" onload="add_style()" src='http://localhost:8000/security/resources/allow-if-origin.php?name=rgbalpha.png'></img> |