1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//CL//DTD XHTML 1.0 Transitional plus Embed//EN"
3 "http://www.w3.org/Graphics/xhtml1-transitional-plus-embed.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml">
6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
8 <meta name="keywords" content="W3C SVG 1.1 Test Suite testsuite mobile"/>
9 <meta name="description" content="W3C SVG 1.1 Test Suite"/>
11 SVG 1.1 test:render-groups-01-b </title>
12 <style type="text/css">
14 body { font-family: "Lucida Grande", verdana, helvetica, sans-serif; line-height: 1.3; text-align: left; margin-top: 0; margin-bottom: 0 }
15 .pageTitle { line-height: 1.5; font-weight: bold; margin-bottom: 1em;}
16 .pageSubTitle { color: blue; font-size: 200%; font-weight: bold }
17 .openChapter { color: blue; line-height: 1.3; font-weight: bold }
18 .openSection { color: blue; line-height: 125%; font-weight: bold }
19 .info { color: black; line-height: 1.2; font-size: 90%; }
20 p { margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0 }
21 .linkbar { text-align: center; margin: 1em 1em 0.25em 1em;}
22 blockquote { margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0 }
23 .opscript {margin-left: 3%; margin-right: 3%; }
24 .opscript p { margin-top: 0.7em}
25 .navbar {background: black; color: white; font-weight: bold}
29 function repaintTest() {
30 if (window.testRunner)
31 testRunner.waitUntilDone();
32 setTimeout(startTest, 0);
34 function startTest() {
35 window.location='#scrollTo';
36 setTimeout(finishTest, 0);
40 if (window.location.toString().indexOf("#") == -1) {
41 setTimeout(finishTest, 0);
45 if (window.testRunner)
46 testRunner.notifyDone();
50 <body class="bodytext" onload="runRepaintAndPixelTest()">
54 <a href="full-render-groups-01-b.html">Full version</a>, <a href="basic-render-groups-01-b.html">Basic version</a></p>
55 <p>Specification link: <a target="spec" href="http://www.w3.org/TR/SVG11/render.html#Grouping">3.4 How groups are rendered</a></p>
57 <a href="full-pservers-pattern-01-b.html">pservers-pattern-01-b ←</a>
58 <a href="full-index.html">index</a>
59 <a href="full-script-handle-01-b.html">→ script-handle-01-b</a>
62 <table align="center" border="0" cellspacing="0" cellpadding="10">
64 <td align="center" colspan="3">
65 <table border="0" cellpadding="8">
67 <td align="center" colspan="2" class="pageTitle">
68 <h1>render-groups-01-b</h1>
81 <embed src="../W3C-SVG-1.1/render-groups-01-b.svg" width="480" height="360"/>
84 <img alt="raster image of render-groups-01-b" src="../W3C-SVG-1.1/render-groups-01-b-w3c.png" width="480" height="360"/>
93 <div class="opscript">
95 Verifies implicit rendering order (paragraph 3.3) and grouping mechanism (paragraphs 3.4).
96 It also validates basic Shape, Image and text rendering.
99 This test renders 3 elements: a text string "SVG", then
100 a shape, then an image. Because of their definition order and coordinates, the image
101 should be on top of the rectangle and the rectangle on top of the text. The
102 test validates that groups are conceptually rendered offscreen before being
103 rendered on the canvas. This is done by grouping the same overlapping objects and
104 rendering the group at half opacity. The background pattern (vertical stripes) should
105 show throw all the group elements. However, none of the "SVG" should show through the
106 rectangle and none of the rectangle should show through the image.
109 Prerequisites: the test assumes proper handling of the fill stroke, stroke-width,
110 opacity, font-size rendering properties. It uses the rect, line, text and image elements, as
111 well as all the elements required for the test template. To ensure that the text string is
112 overlapped by the other elements and to avoid a dependency on system fonts, an SVG font is used.
115 The rendered image should match the reference image exactly.
119 <div class="linkbar"> <p>
120 <a href="full-pservers-pattern-01-b.html">pservers-pattern-01-b ←</a>
121 <a name="scrollTo" href="full-index.html">index</a>
122 <a href="full-script-handle-01-b.html">→ script-handle-01-b</a>