Bug 1250490 - Part 6. Test case. r=mstange

MozReview-Commit-ID: 91Qidd0ADve

--HG--
extra : rebase_source : 2ca06137a909b76c81dacb74761f175650023687
This commit is contained in:
cku 2016-11-03 14:29:15 +08:00
Родитель efbebcc1a8
Коммит be2238288b
2 изменённых файлов: 34 добавлений и 0 удалений

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

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Masking: clip-path in SVG mask</title>
<link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
<link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-mask-image">
<link rel="match" href="mask-image-3-ref.html">
<meta name="assert" content="Test checks whether clip-path in SVG mask works correctly or not.">
<svg height="0">
<mask id="mask1" x="0" y="0" width="1" height="1" >
<rect x="0" y="0" width="50" height="50" style="stroke:none; fill: #ffffff"/>
</mask>
<mask id="mask2" x="0" y="0" width="1" height="1" >
<rect x="25" y="25" width="50" height="50" style="stroke:none; fill: #ffffff" clip-path="circle(50% at 50% 50%)"/>
</mask>
</svg>
<style type="text/css">
div {
background-color: purple;
mask-image: url(#mask1), url(#mask2);
width: 100px;
height: 100px;
}
</style>
</head>
<body>
<div></div>
</body>
</html>

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

@ -26,6 +26,7 @@ fuzzy-if(skiaContent||winWidget,1,43) == mask-image-3d.html mask-image-3-ref.htm
== mask-image-3e.html mask-image-3-ref.html
fuzzy-if(skiaContent,50,50) == mask-image-3f.html mask-image-3-ref.html
== mask-image-3g.html mask-image-3-ref.html
pref(layout.css.clip-path-shapes.enabled,true) == mask-image-3h.html mask-image-3-ref.html
== mask-image-4a.html blank.html
== mask-image-4b.html blank.html
== mask-image-5.html mask-image-5-ref.html