Bug 577824 - Part 2. Add a reftest for an SVG filtered HTML element that's inserted into the DOM by script. r=jwatt

MozReview-Commit-ID: 2onAXw1tbcJ

--HG--
extra : rebase_source : deb32c12b45634200e87acdd9514aac11765ea93
This commit is contained in:
cku 2017-08-09 02:02:27 +08:00
Родитель 82da18f800
Коммит cdd6e63deb
4 изменённых файлов: 60 добавлений и 0 удалений

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

@ -1565,6 +1565,7 @@ random-if(!winWidget) random-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu)) == 5
random-if(!winWidget) random-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu)) == 574907-2.html 574907-2-ref.html # Bug 1258240
# 574907-3 only worked under directwrite, and even there it now depends on the rendering mode; marking as random for now
random-if(!winWidget) fails-if(winWidget&&!dwrite) random-if(winWidget&&dwrite) != 574907-3.html 574907-3-notref.html
== 577824.html 577824-ref.html
== 577838-1.html 577838-1-ref.html
== 577838-2.html 577838-2-ref.html
== 579323-1.html 579323-1-ref.html

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

@ -0,0 +1,23 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:svg="http://www.w3.org/2000/svg">
<head>
<style>
div{
left: 10px;
top: 10px;
position: absolute;
width : 100px;
height : 100px;
margin : 10px;
background : lime;
}
</style>
</head>
<body style="margin:0">
<div></div>
</body>
</html>

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

@ -0,0 +1,35 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:svg="http://www.w3.org/2000/svg">
<head>
<style>
div{
left: 10px;
top: 10px;
position: absolute;
width : 100px;
height : 100px;
margin : 10px;
background : red;
filter:url(#flood);
}
</style>
</head>
<body style="margin:0">
<script>
window.addEventListener('load',function(e){
var div = document.createElement('div');
document.body.appendChild(div);
},false);
</script>
<svg:svg width="0" height="0">
<svg:filter id="flood" x="0" y="0" width="100%" height="100%" filterUnits="userSpaceOnUse">
<svg:feFlood flood-color="lime"/>
</svg:filter>
</svg:svg>
</body>
</html>

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

@ -25,6 +25,7 @@ fuzzy-if(Android,255,30) == clipPath-html-06-extref.xhtml clipPath-html-06-ref.x
== dynamic-conditions-outer-svg-03.xhtml ../pass.svg
== dynamic-conditions-outer-svg-04.xhtml ../pass.svg
== filter-html-01.xhtml filter-html-01-ref.svg
== filter-html-dynamic-01.xhtml filter-html-dynamic-01-ref.xhtml
random-if(Android) random-if(styloVsGecko) == filter-html-01-extref.xhtml filter-html-01-ref.svg # Android: bug 1198380
== filter-html-zoomed-01.xhtml filter-html-01-ref.svg
fuzzy-if(webrender,1,125414) == mask-html-01.xhtml mask-html-01-ref.svg