Reftest for Bug 489718. r=longsonr

This commit is contained in:
Ryo Onodera 2009-05-11 14:32:24 +01:00
Родитель 647919875d
Коммит 6707986f83
3 изменённых файлов: 51 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,25 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=489718 -->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Test that shape-rendering hint affects clipping</title>
<desc>
By not setting explict shape-rendering attribute, this test tells browsers to
apply anti-aliasing to all shape's rendering. And this test checks the hint
correctly affects clip-path, too.
</desc>
<defs>
<g id="circles">
<circle cx="50" cy="50" r="50" fill="lime"/>
<circle cx="150" cy="50" r="50" fill="lime"/>
</g>
<clipPath id="clip">
<use xlink:href="#circles"/>
</clipPath>
</defs>
<use xlink:href="#circles"/>
</svg>

После

Ширина:  |  Высота:  |  Размер: 822 B

Просмотреть файл

@ -0,0 +1,25 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=489718 -->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Test that shape-rendering hint affects clipping</title>
<desc>
By not setting explict shape-rendering attribute, this test tells browsers to
apply anti-aliasing to all shape's rendering. And this test checks the hint
correctly affects clip-path, too.
</desc>
<defs>
<g id="circles">
<circle cx="50" cy="50" r="50" fill="lime"/>
<circle cx="150" cy="50" r="50" fill="lime"/>
</g>
<clipPath id="clip">
<use xlink:href="#circles"/>
</clipPath>
</defs>
<rect width="200" height="100" fill="lime" clip-path="url(#clip)"/>
</svg>

После

Ширина:  |  Высота:  |  Размер: 861 B

Просмотреть файл

@ -15,6 +15,7 @@ include filters/reftest.list
include moz-only/reftest.list
== clipPath-basic-01.svg pass.svg
== clipPath-and-shape-rendering-01.svg clipPath-and-shape-rendering-01-ref.svg
== clip-surface-clone-01.svg clip-surface-clone-01-ref.svg
== conditions-01.svg pass.svg
== currentColor-01.svg pass.svg