mask-position-4b.html (948B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Masking: mask-position: mask positioning</title> 6 <link rel="author" title="Astley Chen" href="mailto:aschen@mozilla.com"> 7 <link rel="author" title="Mozilla" href="https://www.mozilla.org"> 8 <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-mask-position"> 9 <link rel="match" href="mask-position-4-ref.html"> 10 <meta name="assert" content="Test checks whether positioning mask layer works correctly or not."> 11 <style type="text/css"> 12 div { 13 width: 100px; 14 height: 100px; 15 } 16 17 #outer { 18 border: 1px solid black; 19 } 20 21 #inner { 22 background-color: purple; 23 mask-position: left; 24 mask-image: url(support/50x50-opaque-blue.svg); 25 mask-repeat: no-repeat; 26 } 27 </style> 28 </head> 29 <body> 30 <div id="outer"> 31 <div id="inner"></div> 32 </div> 33 </body> 34 </html>