mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 07:45:30 +00:00
28cb955754
MozReview-Commit-ID: 7nd3oL8bFLw --HG-- extra : rebase_source : 936d43c69ffd530d6995839328b30f2052e25a1e extra : histedit_source : 51e86c503451e03a9215e58a16a42e5656321ca1
43 lines
690 B
HTML
43 lines
690 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>mask-image with scale transform</title>
|
|
<style>
|
|
|
|
body {
|
|
margin: 0;
|
|
}
|
|
|
|
#transform {
|
|
width: 10px;
|
|
height: 10px;
|
|
transform: scale(20);
|
|
transform-origin: top left;
|
|
padding: 5px 10px;
|
|
}
|
|
|
|
#opacity {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
#mask {
|
|
width: 10px;
|
|
height: 10px;
|
|
background: green;
|
|
mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 10 10"><circle cx="5" cy="5" r="5" fill="black"/></svg>');
|
|
}
|
|
|
|
#activator {
|
|
border: 1px solid transparent;
|
|
will-change: transform;
|
|
}
|
|
|
|
</style>
|
|
|
|
<div id="transform">
|
|
<div id="opacity">
|
|
<div id="mask">
|
|
<div id="activator"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|