зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1323912 - Part 6. Test cases. r=mstange
mask-opacity-1d.hmtl: vertify the change in Part 4. Before we land Part 4, the rendering result in FF is not correct. mask-opacity-1e.hmtl: vertify the change in Part 5. MozReview-Commit-ID: GcbDCvr9ttF --HG-- extra : rebase_source : 842616602e1511cfebd7db5294c3937a6adb50e2
This commit is contained in:
Родитель
8c03e0e5d4
Коммит
e7cc649f98
|
@ -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="50" width="100" 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(#myMask), url(#myMask);
|
||||
opacity: 0.5;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,36 @@
|
|||
<!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.">
|
||||
<style type="text/css">
|
||||
#outter {
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
top: 10px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
mask-image: url(support/blue-100x50-transparent-100x50.png),
|
||||
url(support/blue-100x50-transparent-100x50.png);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
#inner {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
box-sizing:border-box;
|
||||
background-color: blue;
|
||||
border: 1px solid transparent;
|
||||
will-change: transform;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="outter"><div id="inner"></div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -111,5 +111,7 @@ default-preferences
|
|||
fuzzy(1,5000) == mask-opacity-1a.html mask-opacity-1-ref.html
|
||||
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
|
||||
|
||||
== clip-path-mix-blend-mode-1.html clip-path-mix-blend-mode-1-ref.html
|
Загрузка…
Ссылка в новой задаче