summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/http/tests/misc/slow-loading-image-in-pattern.html
blob: de6e5e070af137cc6de448e825f8e2883eefb58b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html>
<body>
This tests slow loading png images referenced from a image element inside a SVG pattern resource.<br>
You should see a 400x300 rect containing a tiled rendering of the Acid3 reference image.

<svg width="400" height="300" style="position: absolute; left: 10px; top: 50px; border: solid;">
<defs>
    <pattern id="pattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse" viewBox="0 0 800 600">
        <image width="800" height="600" xlink:href="resources/slow-png-load.pl?name=acid3-output.png&loadtime=1"/>
  </pattern>
</defs>
<rect width="400" height="300" fill="url(#pattern)"/>
</svg>
<script>
// Force a layout
document.body.offsetWidth;

// Repaint immediately before image arrived
if (window.testRunner)
    testRunner.display();
</script>
</body>
</html>