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 window.testIsAsync = true;
30 function repaintTest() {
31 setTimeout(startTest,
0);
33 function startTest() {
34 window.location='#scrollTo';
35 setTimeout(finishTest,
0);
39 if (window.location.toString().indexOf(
"#") == -
1) {
40 setTimeout(finishTest,
0);
47 <body class=
"bodytext" onload=
"runRepaintAndPixelTest()">
51 <a href=
"full-render-groups-01-b.html">Full version
</a>,
<a href=
"basic-render-groups-01-b.html">Basic version
</a></p>
52 <p>Specification link:
<a target=
"spec" href=
"http://www.w3.org/TR/SVG11/render.html#Grouping">3.4 How groups are rendered
</a></p>
54 <a href=
"full-pservers-pattern-01-b.html">pservers-pattern-
01-b ←
</a>
55 <a href=
"full-index.html">index
</a>
56 <a href=
"full-script-handle-01-b.html">→ script-handle-
01-b
</a>
59 <table align=
"center" border=
"0" cellspacing=
"0" cellpadding=
"10">
61 <td align=
"center" colspan=
"3">
62 <table border=
"0" cellpadding=
"8">
64 <td align=
"center" colspan=
"2" class=
"pageTitle">
65 <h1>render-groups-
01-b
</h1>
78 <embed src=
"../W3C-SVG-1.1/render-groups-01-b.svg" width=
"480" height=
"360"/>
81 <img alt=
"raster image of render-groups-01-b" src=
"../W3C-SVG-1.1/render-groups-01-b-w3c.png" width=
"480" height=
"360"/>
90 <div class=
"opscript">
92 Verifies implicit rendering order (paragraph
3.3) and grouping mechanism (paragraphs
3.4).
93 It also validates basic Shape, Image and text rendering.
96 This test renders
3 elements: a text string
"SVG", then
97 a shape, then an image. Because of their definition order and coordinates, the image
98 should be on top of the rectangle and the rectangle on top of the text. The
99 test validates that groups are conceptually rendered offscreen before being
100 rendered on the canvas. This is done by grouping the same overlapping objects and
101 rendering the group at half opacity. The background pattern (vertical stripes) should
102 show throw all the group elements. However, none of the
"SVG" should show through the
103 rectangle and none of the rectangle should show through the image.
106 Prerequisites: the test assumes proper handling of the fill stroke, stroke-width,
107 opacity, font-size rendering properties. It uses the rect, line, text and image elements, as
108 well as all the elements required for the test template. To ensure that the text string is
109 overlapped by the other elements and to avoid a dependency on system fonts, an SVG font is used.
112 The rendered image should match the reference image exactly.
116 <div class=
"linkbar"> <p>
117 <a href=
"full-pservers-pattern-01-b.html">pservers-pattern-
01-b ←
</a>
118 <a name=
"scrollTo" href=
"full-index.html">index
</a>
119 <a href=
"full-script-handle-01-b.html">→ script-handle-
01-b
</a>