Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-masking/mask-image/mask-mode-luminance-with-mask-size.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Masking: 'mask-mode: luminance' with 'mask-size'</title>
<link rel="author" title="Antoine Quint" href="mailto:graouts@webkit.org">
<link rel="match" href="mask-mode-luminance-with-mask-size-ref.html">
<meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-5000">
<meta name="assert" content="Test checks that mask a PNG image referenced by mask-image is correct with 'mask mode: luminance', partial transparency and 'mask-mode'.">
<style type="text/css">
div {
background-color: blue;
position: absolute;
width: 100px;
height: 100px;
top: 10px;
left: 10px;
mask-mode: luminance;
mask-size: 100px 50px;
mask-image: url(support/transparent-100x50-blue-100x50.png);
}
</style>
</head>
<body>
<div></div>
</body>
</html>