Regression reftests for bug 822014 to let us know if the behavior of clip-path on outer-<svg> with a border changes.

This commit is contained in:
Jonathan Watt 2012-12-22 16:43:20 +00:00
parent ce3ece2587
commit 265cd73200
4 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg">
<rect x="100" y="100" width="100" height="100" fill="black"/>
<rect x="150" y="150" width="50" height="50" fill="yellow"/>
</svg>

After

Width:  |  Height:  |  Size: 179 B

View File

@ -0,0 +1,31 @@
<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=822014 -->
<head>
<title>Test clip-path on outer-&lt;svg&gt; with border</title>
<style>
html, body {
border: 0; margin: 0;
}
</style>
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg"
width="200" height="200" clip-path="url(#cp)"
style="border: solid 100px black; margin: 50px;">
<clipPath id="cp">
<path d="M50,50 150,50 150,150 50,150 z"/>
</clipPath>
<rect width="100%" height="100%" fill="yellow"/>
</svg>
</body>
</html>

View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=822014 -->
<head>
<title>Test clip-path on &lt;div&gt; with border</title>
<style>
html, body {
border: 0; margin: 0;
}
</style>
</head>
<body>
<div style="clip-path: url(#cp); width: 200px; height: 200px; background: yellow; border: solid 100px black; margin: 50px;"></div>
<svg xmlns="http://www.w3.org/2000/svg" height="0">
<clipPath id="cp">
<path d="M50,50 150,50 150,150 50,150 z"/>
</clipPath>
</svg>
</body>
</html>

View File

@ -10,6 +10,8 @@ fuzzy-if(true,140,70) == clipPath-html-05.xhtml clipPath-html-05-ref.xhtml # Bug
fuzzy-if(true,140,70) == clipPath-html-05-extref.xhtml clipPath-html-05-ref.xhtml # Bug 776089
== clipPath-html-06.xhtml clipPath-html-06-ref.xhtml
== clipPath-html-06-extref.xhtml clipPath-html-06-ref.xhtml
== clipPath-html-07.xhtml clipPath-html-07-ref.svg
== clipPath-html-08.xhtml clipPath-html-07-ref.svg # reuse 07-ref.svg
== clipPath-html-zoomed-01.xhtml clipPath-html-01-ref.svg
== clipPath-transformed-html-01.xhtml ../pass.svg
== clipPath-transformed-html-02.xhtml ../pass.svg