Bug 1353697, part 3 - Test 'transform' on outer-<svg> works correctly. r=longsonr

This commit is contained in:
Jonathan Watt 2017-03-13 16:59:31 +00:00
Родитель 2e3616de57
Коммит dafa7ab482
6 изменённых файлов: 60 добавлений и 0 удалений

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

@ -471,6 +471,9 @@ fuzzy-if(skiaContent,1,610) == textPath-03.svg pass.svg
== text-white-space-01.svg text-white-space-01-ref.svg
== thin-stroke-01.svg pass.svg
== transform-outer-svg-01.svg transform-outer-svg-01-ref.svg
== tspan-dxdy-01.svg tspan-dxdy-ref.svg
== tspan-dxdy-02.svg tspan-dxdy-ref.svg
== tspan-dxdy-03.svg tspan-dxdy-ref.svg

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

@ -42,3 +42,5 @@ fuzzy(1,5000) == mask-clipPath-opacity-01b.xhtml mask-clipPath-opacity-01-ref.xh
fuzzy(1,5000) == mask-clipPath-opacity-01c.xhtml mask-clipPath-opacity-01-ref.xhtml
fuzzy(1,5000) == mask-clipPath-opacity-01d.xhtml mask-clipPath-opacity-01-ref.xhtml
fuzzy(1,5000) == mask-clipPath-opacity-01e.xhtml mask-clipPath-opacity-01-ref.xhtml
== transform-outer-svg-01.xhtml transform-outer-svg-01-ref.xhtml

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

@ -0,0 +1,18 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test that the 'transform' attribute transforms our border too</title>
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=1353697 -->
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" width="250" height="250">
<rect x="75" y="75" width="150" height="150" fill="none" stroke="black" stroke-width="50"/>
<rect x="125" y="125" width="50" height="50" fill="blue"/>
</svg>
</body>
</html>

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

@ -0,0 +1,18 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test that the 'transform' attribute transforms our border too</title>
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=1353697 -->
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"
style="border: 50px solid black;" transform="translate(50,50)">
<rect x="25" y="25" width="50" height="50" fill="blue"/>
</svg>
</body>
</html>

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

@ -0,0 +1,9 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<svg xmlns="http://www.w3.org/2000/svg" width="250" height="250">
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=1353697 -->
<rect x="75" y="75" width="150" height="150" fill="none" stroke="black" stroke-width="50"/>
<rect x="125" y="125" width="50" height="50" fill="blue"/>
</svg>

После

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

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

@ -0,0 +1,10 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"
style="border: 50px solid black;" transform="translate(50,50)">
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=1353697 -->
<title>Test that the 'transform' attribute transforms our border too</title>
<rect x="25" y="25" width="50" height="50" fill="blue"/>
</svg>

После

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