property
webkit mask composite — CSS reference
Nonstandard mask-layer compositing using Porter-Duff operator names. XOR keeps regions covered by only one of two opaque masks. The standardized mask-composite:exclude expresses that operation; do not mechanically translate arbitrary layer orders or operator names.
Formal Syntax & Structure
css syntaxcss
-webkit-mask-composite: xor;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>-webkit-mask-composite</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{width:100px;height:50px;background:red;mask-image:linear-gradient(black,black),linear-gradient(black,black);mask-size:60px 50px,60px 50px;mask-position:left,right;mask-repeat:no-repeat;-webkit-mask-composite:xor}</style><body><div id="a" role="img" aria-label="Two separated red strips"></div></body></html>