| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <script src="../../fast/repaint/resources/repaint.js"></script> |
| <body onload="runRepaintTest()"> |
| <p>The svg area contained in the div element (red box), should contain four masked circles, that do not pixelate after resizing</p> |
| <div id="contentBox" style="width: 100px; height: 400px; border: 1px solid red;"> |
| <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="20 15 60 50"> |
| <linearGradient id="gradient" x1="0" x2="1" y1="0" y2="1" color-interpolation="linearRGB"> |
| <stop offset="0" stop-color="blue" /> |
| <stop offset="1" stop-color="red" /> |
| <mask id="mask" maskUnits="userSpaceOnUse" x="25" y="20" width="50" height="40"> |
| <circle cx="25" cy="20" r="20" fill="#ffffff" /> |
| <circle cx="25" cy="60" r="20" fill="#ffffff" /> |
| <circle cx="75" cy="20" r="20" fill="#ffffff" /> |
| <circle cx="75" cy="60" r="20" fill="#ffffff" /> |
| <g fill="url(#gradient)"> |
| <rect width="100" height="80" mask="url(#mask)" /> |
| <script type="JavaScript"> |
| document.getElementById("contentBox").style.setProperty("width", "400px"); |