Bug 1346618 - Part 2. Test case. r=mstange

MozReview-Commit-ID: FVEqDh9E5DP

--HG--
extra : rebase_source : 3aa8bb0fcb1afc95201c09ae9b117b7f644f408f
This commit is contained in:
cku 2017-03-13 11:19:49 +08:00
Родитель 494c75d825
Коммит dd63025922
2 изменённых файлов: 33 добавлений и 0 удалений

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

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Masking: mask-image: mask with opacity</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-opacity-1-ref.html">
<meta name="assert" content="Test checks whether apply opacity to masked element correctly or not.">
<svg height="0">
<mask id="myMask" x="0" y="0" width="100" height="100" >
<rect x="0" y="0" width="50" height="50" style="stroke:none; fill: #ffffff"/>
</mask>
</svg>
<style type="text/css">
div {
position: absolute;
left: 10px;
top: 10px;
background-color: rgb(0,0,255);
width: 100px;
height: 100px;
mask-image: url(support/blue-100x50-transparent-100x50.svg);
opacity: 0.5;
}
</style>
</head>
<body>
<div></div>
</body>
</html>

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

@ -114,5 +114,6 @@ fuzzy(1,5000) == mask-opacity-1b.html mask-opacity-1-ref.html
fuzzy(1,5000) == mask-opacity-1c.html mask-opacity-1-ref.html
fuzzy(1,5000) == mask-opacity-1d.html mask-opacity-1-ref.html
fuzzy(1,5000) == mask-opacity-1e.html mask-opacity-1-ref.html
fuzzy(1,5000) == mask-opacity-1f.html mask-opacity-1-ref.html
== clip-path-mix-blend-mode-1.html clip-path-mix-blend-mode-1-ref.html